for(i<-3 to 100;j<-3 to i*i;s=j*j+i*i;k=Math.sqrt(s).toInt)if(k*k==s)println(i+" "+j+" "+k)

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

download

return to the top page