Problem1165--【C++语言训练】求素数问题

1165: 【C++语言训练】求素数问题

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

求出1-N中的所有素数


Input

大于1的正整数N

Output

1-N中的所有素数,(以从小到大的格式输出)

Sample Input Copy

9

Sample Output Copy

2 3 5 7 

Source/Category

  黄金