Responsive image

Problem 1029 --用筛法求之N内的素数。

1029: 用筛法求之N内的素数。

Time Limit: 1 Sec  Memory Limit: 64 MB
Submit: 242  Solved: 197
[Submit][Status][Web Board][Creator:]

Description

用筛法求之N内的素数。

Input

N

Output

0~N的素数

Sample Input

100

Sample Output

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

Source

 

[Submit][Status]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版