Skip to content

Instantly share code, notes, and snippets.

@iizukak
Created July 16, 2012 13:53
Show Gist options
  • Select an option

  • Save iizukak/3122846 to your computer and use it in GitHub Desktop.

Select an option

Save iizukak/3122846 to your computer and use it in GitHub Desktop.
project euler problem 9
#project euler problem 9
#auther @iizukak
def pitag():
for a in range(1, 1001):
for b in range(1, 1001):
for c in range(1, 1001):
if a + b + c == 1000:
if a ** 2 + b ** 2 == c ** 2:
return a * b * c
print(pitag())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment