I need to show that being an integral domain is a local property. That is, a commutative ring $A$ has no zero divisors iff $A_{\mathfrak p}$ has no zero divisors for every prime ideal $\mathfrak p$.
One way is obvious: if there are zero divisors in a localization, then there are zero divisors in $A$.
Proving the other direction I am running into the following difficulty: let $a\in A$ be a zero divisor. Then $Ann(a)\ne 0$. I can guarantee that either
for a certain prime ideal $\mathfrak p$ the fraction $a/1\ne 0$, in $A_{\mathfrak p}$ or
for a certain prime ideal $\mathfrak p$ there is a $b\in Ann(a)$ and an $s\in A-\mathfrak p$ such that $b/s\ne 0$ in $A_{\mathfrak p}$.
But I can't figure out how to get a $\mathfrak p$ for which both are true. If I had that, then the product $$\frac a1\cdot\frac bs$$ would equal zero and I would be done, but in both cases I only know for sure that one of the factors is nonzero.