I am trying to solve Problem 7.4.40 from Dummit and Foote, a part of which states:
Let $R$ be a commutative ring with $1\neq 0$ such that $R$ has exactly one prime ideal. Then every element of $R$ is either nilpotent or a unit.
ATTEMPT: Let $P$ be the unique prime ideal of $R$. We will show that every element of $R\setminus P$ is a unit. Let $r\in R\setminus P$. Then the ideal $(r)$ is either equal to $R$ or is a proper ideal of $R$. If $(r)=R$ then $r$ is a unit. So assume $(r)\subsetneq R$. But then $(r)$ is contained in a maximal ideal $M$ of $R$. Clearly $M\neq P$. But $M$ is also a prime ideal of $R$ since it is a maximal ideal of $R$, giving a contradiction.
So we have shown that $x\in R\setminus P\Rightarrow r$ is a unit.
Also, since $P$ is prime, we have $\mathfrak N(R)\subseteq P$.
What I am struggling with is showing that $\mathfrak N(R)=P$.
NOTE: The result that $\mathfrak N(R)$ is the intersection of all the prime ideal of $R$, where $R$ is a commutative ring with $1\neq 0$, is not yet discussed in the textbook (See the comment in Problem 7.4.26 in D&F). So I think there must be an elementary argument which shows $\mathfrak N(R)=P$ in the question at hand.
Thanks.