THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

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