eolymp
Competitions

DSA Week 2

Sieve of Eratosthenes

Given the value of a and b, print all primes in the interval from a to b inclusively.

Input

Two integers a and b (1ab100000).

Output

Print in one line all prime numbers in the interval from a to b inclusively.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2 2
Output example #1
2