Sieve of Eratosthenes
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given the values of and , print all primes in the interval from to inclusively.
Input
Two integers and .
Output
Print in one line all prime numbers in the interval from to inclusively.
Examples
Input #1
Answer #1
Submissions 13K
Acceptance rate 34%