The primes in $\Z[i]$ are, up to associates, exactly
the primes $p$ in $\Z$ such that $p\equiv 3\pmod 4$; and
Gaussian integers $z\in \Z[i]$ such that $N(z) = z\bar z = p$ is prime in $\Z$ with $p\equiv 1$ or $p\equiv 2\pmod 4$.
Proof