I could use some help for the second part of exercise I-34 from Eisenbud and Harris' Geometry of Schemes:
Let $X$ be a connected scheme. Show that $X$ is irreducible if and only if for all $x \in X$, the stalk local ring has a unique minimal prime ideal.
I guess it must be related to the first part of the exercise, that states:
An arbitrary scheme is irreducible iff every open affine subset is irreducible.
My ideas
I know that an affine scheme $\text{Spec }R$ is irreducible precisely when $R$ has a unique minimal prime ideal, so that leaves us with the to be proven statement: $$ X \text{ is irreducible} \quad\iff \quad \forall x \in X, \text{ Spec}(\mathcal{O}_{X,x}) \text{ is irreducible}. $$ but the RHS seems even harder to prove: $\text{ Spec}(\mathcal{O}_{X,x})$ doesn't really seem to be "accessible" in some way. For example, this result cannot be applied since $\text{ Spec}(\mathcal{O}_{X,x})$ cannot be identified with affine patches as one would like to do. Do you have ideas?