Implements the Sieve of Erasthenes in python