Proof (PID is UFD)
Existence of factorisation
Let $r\in R$ be non-zero and non-unit, and suppose to the contrary that $r$ cannot be written as a product of irreducibles. Construct $r_1, r_2, r_3, \ldots$ as follows:
-
In particular $r$ is not an irreducible, so write $r = r_1 s_1$, where $r_1, s_1\in R$ are non-zero non-units. They cannot be both irreducibles, so WLOG assume $r_1$ is not an irreducible.
-
Write $r_1 = r_2 s_2$, both non-zero non-units. Again they cannot be both irreducibles, so WLOG assume $r_2$ is not an irreducible.
And so on.
This leads to $$ \begin{align*} r = r_1s_1 = r_2 s_2 s_1 = r_3 s_3 s_2 s_1 = \ldots \end{align*} $$ and so $$ \begin{align*} (r) \subseteq (r_1) \subseteq (r_2) \subseteq (r_3) \subseteq \ldots. \end{align*} $$ However since $R$ is Noetherian, the chain stabilises, and thus $(r_n) = (r_{n+1})$ for some (in fact all) large $n$. Then $r_{n+1} s_{n+1} = r_n$, so $s_{n+1}$ must be a unit, contradicting with the construction.
Uniqueness of factorisation
Let $$p_1 \ldots p_n = q_1 \ldots q_m$$ be products of irreducibles or equivalently primes.
Since $p_1\mid q_1 \ldots q_m$ and $p_1$ is prime, $p_1$ divides some $q_i$ and reorder to say $p_1 \mid q_1$. Then $q_1 = p_1 u_1$ for some $u_1\in R$. But $q_1$ is irreducible and $p_1$ is not a unit, so $u_1$ is a unit. Therefore cancelling $p_1$ on both sides (as we're working in an integral domain), $$ \begin{align*} p_2 p_3 \ldots p_n = \underbrace{u_1 q_2}_{\tilde q_2} q_3 \ldots q_m. \end{align*} $$ where $\tilde q_2 = u_1 q_2$ is still an irreducible.
Continue as above to show $p_i$ and $q_i$ are associates for $i\leq \max\set{n,m}$. If one of the sides run out of irreducibles first, then we get a product of irreducibles being equal to a unit, which is impossible as irreducibles cannot be units. Thus $n=m$.