def return_primes(upto=100):
    primes = []
sieve = set()
for i in range(2, upto + 1):
    if i not in sieve:
        primes.append(i)
sieve.update(list(range(i, upto + 1, i)))
return primes
Project Euler #10 with Python, Numpy sum summing incorrectly