I am aware that irreducibles and primes are equivalent in PIDS. However, are they equivalent in UFDs?
Would the following reasoning work?
1) Suppose $f$ is irreducible. Then the prime factorization of $f$ must be $f$ itself. Hence $f$ is a prime itself.
2) Suppose $f$ is prime. That is, if $f \mid ab$ then $f \mid a$ or $f \mid b.$ Suppose $f = gh$ such that $g, h$ are not units. Then $f \mid gh.$ If $f \mid g$ then $g = fk$ It follows that $h$ must be a unit. Hence $f$ must be irreducible.
Does this work? So would it follow that in any $k[X_1, \ldots, X_n]$ for $k$ a field, the principal ideal generated by an irreducible is a prime ideal as $k[X_1, \ldots, X_n]$ is a UFD?