Primes in Range
View as PDFA number is prime if it has exactly two divisors: itself and 1.
You are given a range from to
, inclusive. Output every prime number that falls in the range.
Input Specification
The first and only line of input contains and
, representing the lower and upper bounds of the range respectively.
Output Specification
The output should include every prime number between and
inclusive, separated by whitespaces
.
Sample Input 1
12 29
Sample Output 1
13 17 19 23 29
Sample Input 2
0 8
Sample Output 2
2 3 5 7
Comments