Skip to main content
1 of 9
sinvec
  • 2k
  • 6
  • 28

C (gcc), 88 bytes

a,b;f(t){a=1e3,b;while(a+1){b=1e3;while(b+1){if(a*a+b*b==t)return 1;b--;}a--;}return 0;}

Try it online!

sinvec
  • 2k
  • 6
  • 28