筛选法求质数
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.
暑假阶段测试
- Status
- Done
- Rule
- XCPC
- Problem
- 7
- Start at
- 2024-8-10 14:00
- End at
- 2024-8-10 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 8