Show that $$\displaystyle\sum\limits_{p \leqslant x}1/p = \dfrac{\pi(x)}{x} + \int_2^x \dfrac{\pi(u)}{u^2} du.$$
In the equation above, $\pi(x)$ denotes the prime counting function. To get started, how do we deal with the integral $\displaystyle\int_2^x \dfrac{\pi(u)}{u^2} du$ on the right hand side? Not really sure what to with it because of $\pi(u)$ in the numerator.
In my number theory class we were given the Riemann Zeta Function: $$\zeta(s) = \displaystyle\sum\limits_{n=1}^\infty \dfrac{1}{n^s}: s \in \mathbb{C}, \operatorname{Re}(s) > 1.$$
We proved $\zeta(s) = \displaystyle\prod\limits_{p \text{ prime}} \left(1-\dfrac{1}{p^s} \right)^{-1}$ and that $\displaystyle\sum\limits_{p \leqslant y}^\infty \dfrac{1}{p} > \log(\log y) - 1,$ $y \in \mathbb{Z}^{>0},$ but not much more than that (that I can think would be useful).
Some hints or pointers in the right direction appreciated.
the first thing to start with is the following, we call primes in order $p_1,p_2,\cdots \cdots$. Let $p_n$ the greatest prime less then or equal to $x$ (so as a consequence $\pi(x)=n$) then:
$$\begin{align}\int_2^x \dfrac{\pi(u)}{u^2} du&=\sum_{i=1}^{n-1} \int_{p_i}^{p_{i+1}} \dfrac{\pi(u)}{u^2} du+\int_{p_n}^x \dfrac{\pi(u)}{u^2} du\\ \\ &=\sum_{i=1}^{n-1} i\int_{p_i}^{p_{i+1}} \dfrac{1}{u^2} du+n\int_{p_n}^x \dfrac{1}{u^2} du \\ \\ &=\sum_{i=1}^{n-1} i\left(\frac{1}{p_i}-\frac{1}{p_{i+1}}\right)+n\left(\frac{1}{p_n}-\frac{1}{x}\right)\end{align}$$
The next steps are protected in the following bloc
I think you can continue from here