Skip to content

Instantly share code, notes, and snippets.

@pzp1997
Created January 15, 2014 00:13
Show Gist options
  • Save pzp1997/8428490 to your computer and use it in GitHub Desktop.
Save pzp1997/8428490 to your computer and use it in GitHub Desktop.
a = 1
b = 1
c = 1
while True:
if a**2+b**2 == c**2 and a+b>c:
print([a, b, c])
if a+b <= c:
a += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment