Sieve of Eratosthenes (python implementation) The sieve of Eratosthenes finds all prime numbers up to any given integer.