Pythagorean triple fixed by fulaftrbrnr

for a in (3..100)\x0d
 for b in (3..(a*a)/2)\x0d
  next if a==b || (a<45 && b>999)\x0d
  c=Math.sqrt(a*a+b*b)\x0d
  print a,' ',b,' ',c.round,"\n" if c.modulo(1)==0\x0d
 end\x0d
end\x0d

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

download

return top