We assume that $V$ is irreducible. Suppose $I(V)$ is not a prime ideal. Then there exist two polynomials $f, g \in k[x_1, x_2, \cdots, x_n]$ such that $f \notin I(V), g \notin I(V)$ but $fg \in I(V).$ Set $V_1 := \{ x \in V | f(x) = 0\}$ and $V_2 := \{ x \in V | g(x) = 0\}.$ Then both $V_1$ and $V_2$ are non-empty and proper closed subsets of $V$ with $V = V_1 \cup V_2.$
Could you explain me why $V=V_1 \cup V_2$ ?