Adding prime sieve [Python]