Example

If R is a field, then the only proper ideal of R is (0); it is both maximal and prime.