TITLE: Uniform upper bound for the sum over primes $\sum_{p \leq x} p^{-1+\varepsilon}$
QUESTION [5 upvotes]: I am reading the article D. M. Gordon and C. Pomerance, The distribution of Lucas and elliptic pseudoprime, Math. Comp. (1991) (click).
In equation (27) the authors, apparently, used the following upper bound for a sum over the prime numbers:
$$(\star)\quad\sum_{p \leq x} p^{-1+\varepsilon} \ll \frac{x^{\varepsilon}}{\varepsilon\log x} ,$$
for sufficiently large $x > 0$ and sufficiently small $\varepsilon > 0$, where the implicit constant in $\ll$ is absolute. (Precisely, $\varepsilon = \frac{4+\log\log\log x}{\log\log x}$, but I hope that this is not really important.) 
I am trying to prove ($\star$) but since now I have failed. Clearly, one way can be using partial summation and the prime number theorem, for example
$$\sum_{p \leq x} p^{-1+\varepsilon} = \pi(x) x^{-1+\varepsilon} + (1-\varepsilon)\int_2^x \pi(t)t^{-2+\varepsilon}dt ,$$
but then I am now been able to prove the claim. I also throught that
$$\sum_{p \leq x} p^{-1+\varepsilon} \leq \sum_{n \leq \pi(x)} n^{-1+\varepsilon} \ll \int_0^{\pi(x)} t^{-1+\varepsilon}dt = \frac{\pi(x)^\varepsilon}{\varepsilon} \ll \frac{x^\varepsilon}{\varepsilon (\log x)^\varepsilon} ,$$
but his is too weak.
Thank you in advance for any suggestion.

REPLY [3 votes]: The left hand side of $(\star)$ is at least
$$ \sum_{p\leq x}p^{-1}=\log\log x +O(1), $$
hence a necessary condition for the truth of $(\star)$ is that
$$ \frac{x^{\varepsilon}}{\varepsilon\log x} \gg \log\log x.$$
This condition is also sufficient, in the light of the following bound that I prove below:
$$ (\star\star)\quad\sum_{p \leq x} (p^{-1+\varepsilon} - p^{-1})\ll \frac{x^{\varepsilon}}{\varepsilon\log x}. $$
In particular, $(\star)$ is valid for $\varepsilon>(\log\log\log x + \log\log\log\log x)/ \log x$, since in this case
$$ \frac{x^{\varepsilon}}{\varepsilon\log x} >  \frac{(\log\log x)(\log\log\log x)}{\log\log\log x + \log\log\log\log x} \gg \log\log x.$$
Now let me prove $(\star\star)$:
$$ \sum_{p \leq x} (p^{-1+\varepsilon} - p^{-1}) \ll \sum_{p\leq e^{1/\varepsilon}}\frac{\varepsilon\log p}{p}+\int_{e^{1/\varepsilon}}^x t^{-1+\varepsilon}\,d\pi(t) $$
$$ \ll 1+\frac{x^\varepsilon}{\log x}+\int_{e^{1/\varepsilon}}^x \frac{t^{-1+\varepsilon}}{\log t}\,dt
= 1+\frac{x^\varepsilon}{\log x}+\int_1^{\varepsilon\log x}\frac{e^t}{t}dt\,\ll\frac{e^{\varepsilon\log x}}{\varepsilon\log x}=\frac{x^\varepsilon}{\varepsilon\log x}. $$

REPLY [2 votes]: The main (and only) theorem in the said paper by T. Salát and S. Znám is the following one:
For any $a>0,$ let us denote the sum $\sum_{p \leq x} p^{a}$ with $S_{a}(x)$. Then, we have that
$$\lim_{x \to \infty} \frac{S_{a}(x) \cdot\log x}{x^{1+a}} = \frac{1}{1+a}.$$
Their proof depends on the Prime Number Theorem. In case you want to take a look at the paper, you can find it here: http://goo.gl/kUO6Zt
Last but not least, note that the late P. S. Bruckman may have had a different proof of this result:
https://www.siam.org/journals/categories/08-005.php