Let R be a commutative ring with an identity such that for all $r\in$ R, there exists some $n>1$ such that $r^n = r$. Show that any prime ideal is maximal. (Atiyah and MacDonald, Introduction to Commutative Algebra, Chapter 1, Exercise 7.)
Any hints?
Hint: Reduce to the case that $R$ is an integral domain satisfying $\forall r \exists n (r^n=r)$, and show that $R$ is a field.