10531053 SUSTech Online Judge
Problem 1053 --Find prime numbers

1053: Find prime numbers

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 213  Solved: 81
[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 <= 106, R – L <= 104)

Output

All prime numbers the problem required.

Sample Input

2 10

Sample Output

2
3
5
7

HINT

Source

[Submit][Status]