For which rings $A$ can elements be written as a finite product of irreducible elements?
I feel like this is true for almost all rings I have ever encountered, but when do I know that I can write any nonzero nonunit element of $A$ as a finite product of irreducible elements? (I am not assuming the product is unique here.)
In particular, if $A$ is an affine $k$-algebra can I always do this? ($k$ algebraically closed field)
Thanks!