This is a question from Perrin's text, and it goes like this: Let $k$ be algebraically closed. Let $F\in k[x,y]$ be an irreducible polynomial. Assume that $V(F)$ is infinite. Prove that $I(V(F))=(F)$.
Here, $V(f)$ is the set of zeroes of the polynomial, and $I(V(F))$ is the ideal $(V(F))$.
Proof: Since $k$ is a field, $k[x,y]$ is a unique factorization domain. So if $F$ is an irreducible polynomial in $k[x,y]$ that's the same as being a prime element. So $F$ generates a prime ideal. Next, we have that $\textbf{rad}(F)=(F)$, since $(F)$ is a prime ideal. So by the Nullstellensatz, $(F)=I(V(F))$.
That is my proof for the problem, but nowhere in my proof did I use the hypothesis that $V(F)$ was infinite. So I was wondering if my proof is valid, or if I made some wrong assumption along the way. Also this proof would work for $k[x_1,...,x_n]$, and the problem only asks for $k[x,y]$, so I'm extra dubious about its correctness.