The set of all prime ideals of a commutative ring $R$ with identity is called the spectrum of the ring and is denoted $\mathrm{Spec}(R)$ .