eolymp
bolt
Try our new interface for solving problems
Problems

Sieve of Eratosthenes

Sieve of Eratosthenes

Given the value of $a$ and $b$, print all primes in the interval from $a$ to $b$ inclusively. \InputFile Two integers $a$ and $b\:(1 \le a \le b \le 10^5)$. \OutputFile 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