Proof (non-zero element is prime iff it generates a prime ideal)
Prime ideal $\implies$ prime element
Suppose $(r)$ is a prime ideal. By definition, $(r)\neq R$, so $r$ is not a unit.
Let $r\mid xy$. Then $xy\in (r)$, which is prime, so $x\in (r)$ or $y\in (r)$, which means $r \mid x$ or $r\mid y$.
Prime element $\implies$ prime ideal
Suppose $r$ is a prime element. Since $r$ is not a unit, $1\neq (r)$, so $(r)\neq R$.
If $xy\in (r)$, then $r\mid xy$. Since $r$ is prime, $r\mid x$ or $r\mid y$, which means $x\in (r)$ or $y\in (r)$.