魏老四OJ
Home
ProblemSet
Source/Category
Contest
题单
Status
Ranklist
F.A.Qs
Login
1064: 【入门】求出N以内的全部素数,并按每行五个数显示
Memory Limit:16 MB
Time Limit:1.000 S
:
Creator:
Submit:12
Solved:10
Submit
Statistics
Description
求出N以内的全部素数,并按每行五个数显示。
Input
输入一个整数N。(N <= 1000)
Output
依题意,输出满足条件的数!2 3 5 7 11 ......
Sample Input
30
Sample Output
2 3 5 7 11 13 17 19 23 29
Source/Category
嵌套循环
Submit
Statistics