Pythagorean triple by twobit

for _=1,100 do
for b=1,5e3 do
c=(_*_+b*b)^.5
q=c%1>0 or print(_.." "..b.." "..c)end
end

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

download

return to the top page