Problem A: Find prime numbers

Problem A: Find prime numbers

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 222  Solved: 83
[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

[Submit][Status]