I'm reading a book on analytic number theory. It asks me to prove:
$$ \sum_p \frac{\log p}{p^s} = \frac{1}{s-1} + O(1) \tag{A}$$ and conclude, via integration, that: $$ \sum_p \frac{1}{p^s} = \log \frac{1}{s-1} + O(1) \tag{B}$$
Now, I know how to prove $(A)$ via Abel Summation. However, when it comes to $(B),$ I have the problem that although:
$$\frac{d}{dx} \log(x-1) = \frac{1}{x-1}$$ and
$$\frac{d}{ds} p^{-s} = (-\log p)p^{-s}$$
I have the problem that when I integrate over $O(1)$, I get $\infty$, not $O(1)$.
What am I doing wrong? How do I get from $(A)$ to $(B)$?
What if you don't integrate over all of $(s,\infty)$? Say, fix $S$ large enough, and...
$$\int_s^S\sum_{p}\frac{\log p}{p^\sigma}d\sigma=\int_s^S\frac{1}{\sigma-1}+O(1)d\sigma=\log\frac{1}{s-1}+O(1) $$
whereas
$$\int_s^S\sum_{p}\frac{\log p}{p^\sigma}d\sigma=\sum_p\int_s^S\frac{\log p}{p^\sigma}d\sigma=\sum_{p}\left(\frac{1}{p^s}-\frac{1}{p^S}\right)=\sum_p\frac{1}{p^s}~+O(1) $$
for $s<S$ as $s\to1^+$.
(Some uniform convergence stuff needs to be checked so that the interchange is justified.)