Pythagorean triple fixed by koyama41

main=mapM putStrLn[unwords$map show[x,y,z]|x<-[3..100],y<-[3..x*50],z<-[max x y..x+y],x*x+y*y==z*z]

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

download

return to the top page