I just started learning about ideals and I'm really confused about this.
I read that a ring can have two maximal ideals, the example that was given was $(2)$,$(3)$ for the ring $\mathbb Z$.
But on the other hand, it says that the sum of ideals is also an ideal? Wouldn't then the set $(2)+(3)$ also be an ideal of the ring $\mathbb Z$ that contains both $(2)$ and $(3)$? Why are then $(2)$ and $(3)$ maximal?
It's because $(2)+(3)=\Bbb Z$, which is not an proper ideal. And this is true because $1=3-2$, and therefore, for each $n\in\Bbb Z$, $n=3n-2n$.