I know that every UFD (unique factorization domain) is a GCD domain i.e. g.c.d. of any two elements, not both zero, exists in the domain.
I am looking for an example of a GCD domain which is not a UFD.
I have not been able to find mainly for the difficulty that in a GCD domain every irreducible must be a prime and all the examples of non-UFD's I know, in them some irreducible is not prime.
So please help. Thanks in advance.
I know two interesting examples of GCD domains which are not UFDs (in fact, both are Bézout domains). The first is the ring of all entire functions over $\mathbb C$; the second is the monoid ring $K\mathbb Q^+$, where $K$ denotes an arbitrary field, and $\mathbb Q^+$ denotes the (additive) monoid of all non negative rational numbers.
For the definition of monoid ring, see wiki. Roughly speaking, $K\mathbb Q^+$ is a generalization of polynomial rings, you can view it as the ring of all "polynomials" with non negative rational exponents (instead of nonnegative integral exponents).