Pythagorean triple fixed by pooq

range(3,101){|a|range(3,5K){|b|d:a*a+b*b;c:math::sqrt(d).to_i;if(d==c*c)%f"%d %d %d"(a,b,c).p;}}

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

download

return to the top page