在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1140--素数筛
1140: 素数筛
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
Solved: 1
Submit Num: 1
Statistics
ShowOff!
Description
用筛法求之N内的素数。
Input
N
Output
0~N的素数
Sample Input
Copy
100
Sample Output
Copy
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97
HINT
数组大小动态定义?函数?
Source/Category
admin