I have the following question:
Show that if $x,y\in\mathbb{Z}$ are positive and $z=x\pm yi$ and $x^2+y^2\equiv1\mod{4}$ then $z$ is irreducible in $\mathbb{Z}[i]$.
I know that a prime can be expressed as the sum of two squares iff the prime is congruent to $1$ modulo $4$, but I'm not sure how to interpret the sum of square being congruent to $1$ mod $4$.
I'm assuming that this requires a proof by contradiction, where you take $z=ab$ and derive the contradiction by using $N(ab)=N(a)N(b)=N(z)$, but I can't seem to find it.