Print All
Prime Numbers
Write a
program that prints all prime numbers from 2 to N (N is included.).
Input: A positive integer N (N>1).
Output: List of prime numbers from 2 to N
with a space in between them.
 
  | Sample Input1: | Sample Input2: | 
 
  | 6 | 29 | 
 
  | Sample  Output1: | Sample  Output2: | 
 
  | 2 3 5 | 2 3 5 7 11 13 17 19 23 29 | 
 
 
Для отправки решений необходимо