Pythagorean triple fixed by hallvabo

for z in range(5e5):
 a,b=z/5000+1,z%5000+1;c=(a*a+b*b)**.5
 if c%1==0:print a,b,"%d"%c

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top