PROBLEM A commutative noetherian ring $R$ in which each ideal $I$ is principal and $I^2=I$ must be a finite product of fields.
I am lost with the condition $I^2=I$ and the desired result "a finite product of fields". In particular, I totally don't know how to use the condition$I^2=I$? Also, I guess this question possibly do with the following question:
Let $R$ be a commutative ring with 1 in which each ideal is prime. Show that $R$ is a field.
Please help!
Hint: A principal ideal $I$ statifying $I^2=I$ is simply an ideal generated by an idempotent. Since every ideal of $R$ is generated by an idempotent, the nilradical of $R$ (which contains nilpotent elements only) must be $(0)$, together with the Noetherian property, $(0)$ is the intersection of finite many prime ideals. Moreover, since in an integral domain, the only idempotent elements are $0$ and $1$, all the prime ideals of $R$ are maximal.