WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (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!

12 Comments

Add a Comment