WEBSITE RETURNED, TUY NHIÊN SỐ LƯỢNG SUBMIT BỊ GIỚI HẠN MỖI NGÀY CÒN RẤT ÍT (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Find the first k primes

Threads: Enter a positive integer k, prints a list of the first k primes.
Input: An integer k.
Output: A line consists of the first k primes. The numbers separated by spaces.
For example:

input:
2
output:
2 3

You are not logged in? Log in to Submit Now!

10 Comments

Add a Comment