Problem: Prove whether or not $x^2+y^2=100,003$ has any integer solutions using modulo arithmetic.
My professor gave the following solution: $x^2+y^2=100,003 \equiv 3 \pmod 4$. By the previous proof verifying that no integer of the form $4k+3$ with integer $k$ is the sum of two squares. Thus $x^2+y^2=100,000$ has no integer solutions.
Why did my professor know to use modulo 4 with remainder 3 looking at the problem? I can't think of any reason to do that.