I came across the following problem
Show that the ring of the Gaussian integers, defined as the subring of $\mathbb{C}$ given by the set $\mathbb{Z}[i]=\{m+in\colon\; m,n\in\mathbb{Z}\}$, where $i=\sqrt{-1}$, is a principal ideal domain (P.I.D).
But can't seem to get anywhere. Clearly $\mathbb{Z}[i]$ is an integral domain since $\mathbb{C}$ has no zero divisors and $\mathbb{Z}[i]$ is a subset of $\mathbb{C}$ which is also commutative. What I can't seem to be able to show is that every ideal on $\mathbb{Z}[i]$ is principal and I don't even know where to start so I've come here looking for some hints on how to prove this last part.
Btw, I have never heard the term Gaussian prime before or anything regarding the Gaussian intigers.