sorry.. so I get 3 mod 4.. why is this prime necessarily or why can it not be written as the sum of two squares?
If a^2 + b^2 = 3 (mod 4), then we must have a^2 = 0 (mod 4) and b^2 = 3 (mod 4), or a^2 = 1 (mod 4) and b^2 = 2 (mod 4), or vice-versa. Now, what are 1^2, 2^2, 3^2 and 4^2 mod 4?