Continued Python implementation of sieve.