euler/python/e010.py

10 lines
161 B
Python
Raw Normal View History

2019-07-14 22:51:31 +02:00
from lib_prime import primes
def euler_010():
return sum(primes(2 * 10**6))
assert(euler_010() == 142913828922)
print("e010.py: {}".format(euler_010()))