Toggle navigation
SUSTech Online Judge
Web Board
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
中
EN
Problem A: Find prime numbers
Problem A: Find prime numbers
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
224
Solved:
84
[
Submit
][
Status
][
Web Board
]
Description
Please print all prime numbers in the range of [L, R].
Input
Only one line with two integers L and R. (1 <= L <= R <= 10
6
, R – L <= 10
4
)
Output
All prime numbers the problem required.
Sample Input
2 10
Sample Output
2 3 5 7
HINT
[
Submit
][
Status
]