project-euler/problem5.py

17 lines
190 B
Python
Raw Normal View History

2017-06-21 16:42:24 +00:00
done = False
key = 1
def modulo(n):
for i in range(1,21):
if n % i != 0:
return False
return True
while not done:
num = key*20
done = modulo(num)
key += 1
print(num)