Let $R$ be a ring where for every element $a \in R$, there exists a positive integer $n_a \gt2$ such that $a^{n_a}=a$. Prove that every prime ideal in $R$ is maximal.
I think that I would want to prove this by contradiction, assuming that a prime ideal $P$ is not maximal. Then, there exists $M \subset R$ (properly). This would imply that there exists $a \in M\setminus P$. Then $a^{n_a}=a \in M\setminus P$. Then $M\setminus P$ is prime. And here I am stuck. I don't see how this helps.
Would I rather want to use the fact that then $R/P$ is an integral domain?
Suppose $\;P\le R\;$ is prime $\;\iff R/P\;$ is an integral domain, and let $\;0\neq a+P\in R/P\;$ .
We're given that
$$\exists\,\,2<n_a\in\Bbb N\;\;s.t.\;\;a^{n_a}=a\implies (a+P)^{n_a}=a^{n_a}+P=a+P\implies$$
$$a(a^{n_a-1}-1)+P=P(=\overline 0)$$
and as $\;R/P\;$ is an integral domain we're done.