Question: $R$ a commutative ring with identity and $x\in R$ is non-nilpotent. Prove there exists a prime ideal $P$ of $R$ such that $x$ is not in $P$.
Thoughts: I was thinking about trying to play with a maximal ideal. Since, if $P$ is maximal then $R/P$ is a field, so $R/P$ is an integral domain and thus $P$ is prime. Now, since $x$ is a non-nilpotent element, we have that $x^n\neq 0$ for $n\geq 1$. So we can take the multiplicative set $\{x,x^2,\dots, x^n,\dots\}$ which doesn't contain $0$, and then I want to say that there must be a maximal ideal of $R$, not intersecting the above multiplicative set, but that would require showing that if, say, $M$ is maximal among non-principal ideals of $R$, then $M$ is a prime ideal, which I am not sure how to do. So, I was wondering if there was an alternative method of proving this, or, if not, is there a nice way to prove the "M maximal among non-principal ideals...." statement? Thank you!