Generate all prime numbers up to a given limit using the classic sieve algorithm.
Constraints
Example
>>> eratosthenes(10) [2, 3, 5, 7] >>> eratosthenes(2) [2] >>> eratosthenes(0) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints