Can I please get feedback on my proof or help proving the following problem I am working on? Thank you for your time and help.
Denote $R$ as the ring of algebraic integers in an imaginary quadratic field and consider $R$ a UFD. Let $P$ be a maximal/prime ideal in $R$ and let $\pi \in P$ be an element of minimal norm. I am trying to prove $\pi$ is irreducible/prime in $R.$
$\textit{Proof.}$ Suppose $P$ is prime ideal, then $P$ is a maximal ideal as every prime ideal in a ring of algebraic integers is maximal. Then $\pi$ is irreducible and $\pi$ is prime because in UFD, $\alpha$ is prime if and only if $\alpha$ is irreducible.