Let $R=\mathbb{Z}[\sqrt{−n}]$ where $n$ is a squarefree integer greater than 3. Prove that $R$ is not a UFD. Conclude that the quadratic integer ring O is not a UFD for $D\equiv 2, 3$ mod $4$, $D < −3$ (so also not an ED and not a PID). [Hint: Show that either $\sqrt{−n}$ or 1 + $\sqrt{−n}$ is not prime].
I have already shown that $R$ is not a UFD using the hint, but I am really stuck on how to conclude that the quadratic integer ring O is not a UFD for $D\equiv 2, 3$ mod $4$, $D < −3$.
Any guidance is appreciated! Thank you.