The First N Primes
Print the first N prime numbers.
Input: one integer N.
Output: the first N primes on one line.
Constraints:
- 1 ≤ N ≤ 1000
Sample Tests
Input 1
5
Output 1
2 3 5 7 11
Input 2
1
Output 2
2
Discussion (opens after you solve — no spoilers before)
No comments yet.