Pythagorean triple fixed by slightair

3.upto(?d){|a|3.upto(4901){|b|c=Math.hypot a,b
puts"#{a} #{b} %d"%c if c.modulo(1)==0}}

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

download

return top