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?