How can I see that all irreducible elements in a principal ideal domain are prime?
$u$ is irreducible when $u_1 u_2 = u \implies u_1 $ or $u_2$ is a unit.
$u$ is prime when $u | ab \implies u|a$ or $u|b$.
How can I see that all irreducible elements in a principal ideal domain are prime?
$u$ is irreducible when $u_1 u_2 = u \implies u_1 $ or $u_2$ is a unit.
$u$ is prime when $u | ab \implies u|a$ or $u|b$.
Suppose $u$ is irreducible in a principal ideal domain $R$. We will show that the principal ideal $(u)$ is maximal. Assume, to the contrary, that $(u)\subsetneq I\subsetneq R$ for some ideal $I$. Since $R$ is a PID, $I=(a)$ for some $a\in R$. Now, $u\in I$ gives $u=ar$ for some $r\in R$. Since $u$ is irreducible, and $a$ is not a unit (since $I=(a)\neq R$), it follows that $r$ is a unit. But then, $a=u r^{-1}$ and so $(u)=I$ which is a contradiction.
Conclusion: $(u)$ is a maximal ideal in $R$, and so in particular it is a prime ideal. Thus, $u$ is prime.
Lemma: In a PID, maximal ideals are prime.
Proof: Let $R$ be a PID, let $M$ be maximal, then $R/M$ is a field and thus an integral domain which implies $M$ is prime. $\square$.
Theorem: If $p$ is irreducible in a PID, then $p$ is prime.
Proof: Let $R$ be a PID. Suppose $p$ is irreducible. It is enough to show $(p)$ is maximal. Suppose there exists an ideal $I \subset R$ with
$$(p) \subsetneq I \subsetneq R.$$
As $R$ is a PID, there exists an $m \in R$ such that $I = (m)$. As $(p) \subset (m)$, there exists an $r \in R$ such that $p = rm$. As $p$ is irreducible, either $r$ a unit or $m$ a unit, if $m$ a unit then $I=R$ and $(p)$ is maximal. If $r$ is a unit, then $I=(p)$ and we are done. $\square$