Wikipedia gives the definition of a Unique Factorisation Domain as one where every element "can be written as a product of prime elements (or irreducible elements)" which suggests that in a UFD prime and irreducible elements are the same.
However, I thought that only in a PID were prime and irreducible elements the same and in a UFD it is true that all prime elements are irreducible, but not visa versa.
What's going on here?