Let D be a principal ideal domain. Prove that every non-zero prime ideal in D is a maximal ideal in D.
So I'm think I need to use the fact that all PID's are UFD's. If it is a UFD I can infer that every irreducible element in D is prime. Does that mean it is itself irreducible though? If so can I conclude thus a field, and thus must be maximal?
Hint $\ $ For principal ideals: $\,\ \rm\color{#0a0}{contains} = \color{#c00}{divides},\,$ i.e. $\,(a)\supset (b)\iff a\mid b,\,$ hence
$$\begin{align} (p)\text{ is prime}\ \Rightarrow&\,\ \ p\ \text{ is prime}\\ \Rightarrow&\,\ \ p\ \text{ is irreducible}\\ \Rightarrow&\ \ \,p\ \ \text{ has no proper}\,\ {\rm\color{#c00}{divisor}}\,\ a\\ \Rightarrow&\ (p)\, \text{ has no proper } \,{\rm\color{#0a0}{container}}\,\ (a)\\ \Rightarrow&\ (p)\, \text{ is maximal} \end{align}\qquad$$