Pythagorean triple fixed by henkma

main=mapM putStrLn[unwords$map show[a,b,c]|a<-[3..100],b<-[3..a^2],mod(a*b)6<1,c<-[b..a+b],a^2+b^2==c^2]

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

download

return to the top page