Prove that id $\mathrm D$ is integral domain, the "$\mathrm D$ is UFD " iff
(1) $\mathrm D$ satisfies the ACC for principal ideals.
(2) every irreducible element is a prime element.
I've proven the right implication. The other direction is harder.
Please give me a proof or hint. Thanks!