Skip to content

Instantly share code, notes, and snippets.

@squirrel532
Created February 24, 2016 08:00
Show Gist options
  • Save squirrel532/77981b1b39bd960d4131 to your computer and use it in GitHub Desktop.
Save squirrel532/77981b1b39bd960d4131 to your computer and use it in GitHub Desktop.
for i in range(1001):
for j in range(i, 1001):
for k in range(1001):
tmp1 = i ** 2 + j ** 2
tmp2 = k ** 2
if tmp1 == tmp2:
print(i, j, k)
elif tmp2 > tmp1:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment