Let $R$ be a ring, and $x\in R$ is a non-nilpotent element of $R$. Let $P$ be an ideal of $R$ that is maximal with respect to the property that $x^n \notin P $, $\forall n$. Show that $P$ is prime.
Note that $P$ may not be a maximal ideal, only maximal with respect to this property. I know that a non-nilpotent element must note be contained in some prime ideal, since the nilradical is the intersection of the prime ideals. However, I am not really sure how to approach this problem.
Suppose $\;rs\in P\;$ , and nevertheless $\;r,s\notin P\;$ , then
$$P\lneq P+rR,\,\,P\lneq P+sR\implies\;\exists\,n,m\in\Bbb N\;\;s.t.\;\;x^n\in P+rR,\,\,x^m\in P+sR\implies$$
$$x^nx^m=x^{n+m}\in(P+rR)(P+sR)\le P\;\;\ldots\;\text{contradiction}$$