This questions comes under the section about Zorn's Lemma. But I'm really lost to how maximality here implies prime.
Edit: R is commutative.
This questions comes under the section about Zorn's Lemma. But I'm really lost to how maximality here implies prime.
Edit: R is commutative.
Let $\mathcal{S}$ be the set of nonfinitely generated ideals, ordered by inclusion. If you have a chain $\mathcal{C}$ in $\mathcal{S}$, its union $K$ is an ideal. Let's prove that $K$ is not finitely generated. Otherwise, we'd find $I\in\mathcal{C}$ such that $K\subseteq I$ and therefore $K=I$, contrary to the assumption that $I$ is not finitely generated.
Let $M$ be a maximal element in $\mathcal{S}$ (which exists by Zorn's lemma, but it is not necessarily a maximal ideal). Suppose $xy\in M$, but $x,y\notin M$.
Then both $(M,x)$ and $(M,y)$ are ideals properly containing $M$, so they are finitely generated, by maximality of $M$ in $\mathcal{S}$.
Can you finish? Further hint: the product of two finitely generated ideals is finitely generated.