Assume the field $\mathbb{K}$ we're working over is algebraically closed. Let $V\subset\mathbb{A}^n$ be an irreducible affine variety such that the coordinate ring $\mathbb{K}[V]$ is NOT an U.F.D. Let $f\in\mathbb{K}[V]$ be an irreducible element. Further, assume that the vanishing set $\mathcal{V}(f)$ is irreducible. Is it true that the ideal $(f)$ is a prime ideal?
Another question I have is that- if $\mathcal{V}(\mathfrak{a})$ is irreducible for some principal ideal $\mathfrak{a}\subset\mathbb{K}[V]$, then is it true that $\mathfrak{a}$ is a prime ideal?
I know that the first statement is true when the coordinate ring is an U.F.D.
Edit: I don't think the link that is provided answers my question. The only information I get using the link is that $\sqrt{(f)}$ is prime ideal, but I'm asking more than that. I'm asking is the ideal $(f)$ itself prime? Notice that the ring is not an UFD, so irreducible element might not necessarily be prime.