On a commutative ring K, an ideal I is prime when: $$ I \text{ is a subgroup of }K,\text{ } I \neq K, \text{and if } x,y \in K, \text{the relation } xy \in I \text{ implies } x \in I \text{ or }y\in I. $$
But is this not always the case in a commutative ring K? Because by definition, if I is an ideal of K, we have $ax \in I$ for any $a \in K$ and $x \in I$.
Where my understanding went wrong?