Moved 6 to 11 from ipython to python.

This commit is contained in:
2019-07-14 16:51:31 -04:00
parent b246d56acd
commit 86e68eeee2
8 changed files with 289 additions and 3 deletions

10
python/e009.py Normal file
View File

@@ -0,0 +1,10 @@
def euler_009():
for a in range(1, 251):
for b in range(a + 1, 501):
c = 1000 - a - b
if a * a + b * b == c * c:
return a * b * c
assert(euler_009() == 31875000)
print("e009.py: {}".format(euler_009()))