Suppose that $R$ is a PID and that $I$ is an an ideal. Then $I$ is maximal iff for any $x$ generating $I$, $x$ is irreducible.
This is my try
Proof: ⇒: Suppose I is maximal and that I is generated by x. Write x=ab for some a,b∈R. Since a|x, I must be a subset of the ideal generated by a. Were this inclusion to be proper, by the maximality of I, we would have R being generated by a. This make a a unit. By symmetry, a or b is a unit. We conclude that x is irreducible.
⇐: Suppose that x is irreducible. If x is not a unit, there is a maximal ideal I of R with x∈I. Since R is a PID, we can choose y∈R so that I is generated by y. Since x∈I, y|x. Write x=ay for some y∈R. Since x is irreducible a is a unit. Hence x and y generate the same ideal; this ideal is maximal.
Is my proof correct???