Type: Default 1000ms 256MiB

筛选法求质数

提示:该题测试数据补录中,暂不支持评测提交。

No testdata at current.

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

输入一个正整数n(10<=n<=10000),输出1-n之间所有的素数。

Input

一个正整数n(n>=10)

Output

1-n之间所有的素数,一行输出一个

Samples

10
2
3
5
7

Limitation

1s, 1024KiB for each test case.

语法综合测试

Not Attended
Status
Done
Rule
XCPC
Problem
11
Start at
2025-8-18 14:00
End at
2025-8-18 17:00
Duration
3 hour(s)
Host
Partic.
16