Find all prime numbers in a range using the Sieve of Eratosthenes.
HardProblem Statement
Find all prime numbers in a range using the Sieve of Eratosthenes.
Sample Input
50
Sample Output
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
Limits
Time: 2s · Memory: 256 MB