Let $R$ be a commutative ring with identity.For each $a\in R$ there exist $n(>1)\in \mathbb N$ such that $a^n=a$.
Prove that every prime ideal of $R$ is maximal.
My try
Let $I$ be a prime ideal of $R$. Then $R/I$ is an integral domain. If I can show using the hypothesis that $R/I$ is a field then we are done.
Any hints to show this?