Skip to content

Instantly share code, notes, and snippets.

@afrieirham
Created January 26, 2019 08:37
Show Gist options
  • Save afrieirham/e0e052e47ccfe08dd9687b057e875516 to your computer and use it in GitHub Desktop.
Save afrieirham/e0e052e47ccfe08dd9687b057e875516 to your computer and use it in GitHub Desktop.
Solution for Project Euler #5
def problem5():
i=20
while(True):
print(i)
if i%20==0 and i%19==0 and i%18==0 and i%17==0 and i%16==0 and i%15==0 and i%14==0 and i%13==0 and i%12==0 and i%11==0:
print(i)
break
i+= 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment