Update 2: I posted an answer to this question.
Update 1: Problem is now solved because of the excellent hint by Qil. So, if someone wants to post an answer just for the sake of closing this question you are more than welcome. I will post an answer myself after I am back from a short vacation, if someone hasn't already left an answer by then.
The following question is problem in Goertz and Wedhorn's Schemes With Examples:
Let $X$ be a scheme. Then consider the following assertions:
(i) Every connected component of $X$ is irreducible.
(ii) $X$ is the disjoint union of its irreducible components.
(iii) For all $x \in X$, the nilradical of $O_{X,x}$ is a prime ideal.
Show that $(i) \Rightarrow (ii) \Rightarrow (iii)$. Show that all assertions are equivalent if the set of irreducible components of $X$ is locally finite (i.e. for all $x \in X$ there exists an open neighborhood of $x$ such that only finitely many irreducible components of $X$ pass through that open neighborhood).
So, I have managed to prove $(i) \Rightarrow (ii)$ which is a topological property, $(ii) \Rightarrow (iii)$ which follows from the fact the the irreducible components of $Spec(O_{X,x})$ are in bijection with the irreducible components of $X$ pasing through $x$. In fact, you can even use this fact to prove $(iii) \Rightarrow (ii)$ (I have not used the fact that the irreducible components of $X$ are locally finite so far).
However, I have no idea how to prove $(iii) \Rightarrow (i)$ or say $(ii) \Rightarrow (i)$ using the hypothesis that the irreducible components of $X$ are locally finite.
I think I am missing something obvious, and any hint would be appreciated. I have been thinking about this problem for a while, and I would not like complete solutions, just hints to get me started in the right direction. If I am unsuccessful, then I will later edit this question and ask for a solution. Also, although this might sound like a homework problem, it is not.