Pythagorean triple fixed by nn

3.upto(100){a->3.upto(50*a){b->int d=c=(a*a+b*b)**0.5;d-c||println("$a $b $c")}}

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

download

return to the top page