Sieve of Eratosthenes

basic

Generate all prime numbers up to a given limit.

Formula

Sieve primes up to n