Does there exist an element $p$ in a ring $R$ such that $p$ is an irreducible element but the ideal $\langle p\rangle $ is not a maximal ideal?
I could only find that $R$ is not a PID but I could not find any counterexample to the problem.Please help.