euler/python/e069.py

15 lines
255 B
Python
Raw Normal View History

2019-07-19 04:52:08 +02:00
from lib_prime import primes
2019-01-31 04:58:02 +01:00
2019-07-19 04:52:08 +02:00
def euler_069():
s = 1
for p in primes(1000):
s *= p
if s > 1000000:
return s // p
if __name__ == "__main__":
print("e069.py: " + str(euler_069()))
assert(euler_069() == 510510)