【例60.3】 找素数

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.

说明

输出正整数a到b之间的所有素数。(只能被1和本身整除的数)

输入格式

输入aa,bb。对于所有数据,1ab200001≤a≤b≤20000

输出格式

由小到大,输出aabb之间的所有素数。每个数占一行。

样例

5 10
5
7

20251012编程挑战精英赛训练

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
51
Start at
2025-9-24 15:00
End at
2025-11-5 7:00
Duration
1000 hour(s)
Host
Partic.
58