for a=3to 100for b=3to 5e3c=(a*a+b*b)^.5 if int(c)=c?a,b,c next next