Sieve of Eratosthenes in Python