This Exercise is in text Tom M Apostol. Analytic number theory page246.
$$s\int_1^\infty\frac{\pi(x)}{x^sx}dx = \sum_{p}\frac{1}{p^s}$$ where the sum is extended over all primes. ($x^sx$ means that $x^s$ times $x$.)
To use abel's identity, I tried that the sum is extended over all positive integers. But I can't find any idea. How can I solve this?
Define a function $f: \mathbb{Z} \to \mathbb{Z}$ as follows: $f(n) =1$ if $n$ is prime and $0$ else. Then you have the following:
$$\sum_p \frac{1}{p^s} = \sum_{n=1}^\infty \frac{f(n)}{n^s}$$
Now we can apply Abel's summation formula. Note here that by our definition of $f$, $\sum_{i=1}^{n} f(i) = \pi (n)$. Thus, proceed using Abel's sum formula:
$$\sum_{p \leq t} \frac{1}{p^s} = \frac{\pi (t)}{t^s} + s \int_{1}^{t} \frac{\pi(x)}{x^{s+1}} dx$$
Where $t$ is some integer. Thus, the result follows if we allow that $t\to \infty$, and by the prime number theorem, the term on the outside of the integral will tend to $0$, and the result follows immediately.