Suppose $P$ is a nontrivial prime ideal in an arbitrary ring. Can $P^2 = P?$ I suppose this might be true for some ring but I cannot think of an example...
Context: In a Dedekind domain, $P^2 \neq P$ as otherwise this would violate unique prime factorization of ideals. This is why I was wondering if equality could actually hold for some ring.