I learnt of this characterization from benedict gross's lectures, lecture 31 .

We usually define a number p∈Rp \in R as prime iff the ideal generated by pp, (p)(p) is prime. Formally, for all a,b∈Ra, b \in R, if ab∈(p)ab \in (p) then a∈(p)a \in (p) or b∈(p)b \in (p).

This can be thought of as saying that among all principal ideals, the ideal (p)(p) is maximal: no other principal ideal (a)(a) contains it.

§ Element based proof