(4) is primary, as and 2 is prime. Suppose . Then . Suppose , so .

But we can have two cases, either or :

If , as and , we get , which means therefore .

If , then , and so .

You can use a similar proof to prove that the primary ideals are (0) and .