The condition that $R$ is a GCD domain is sufficient for every irreducible element to be prime. However, is there a necessary condition?
It does seem to be the case that in an integral domain $R$ for which every element can be factored into irreducibles, $R$ is a UFD iff every irreducible is prime. But without this, is there a nice necessary condition?