Given $A$ and $B$, print every prime in $[A, B]$ in ascending order, one per line. If there are none, print empty.
Input
Two integers $A$ and $B$ ($1 \le A \le B \le 10^6$).
Output
Print the primes in $[A, B]$, or empty.
Example 1
Input
10 30
Output
11 13 17 19 23 29
Example 2
Input
24 28
Output
empty
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.