I don't know much (anything) about sieves, but as I read the section on the Selberg upper bound sieve from Greaves's Sieves in Number Theory, there is a theorem 4 which says that If $Y\ge X \ge 2$, then
\begin{equation} \pi(Y)-\pi(Y-X) \leq \frac{2X}{\log X} + O\left(\frac{X}{\log^2 X}\right). \end{equation}
- I would be interested in knowing what the best available bound is.
- Also, I notice that this bound holds irrespective of the value of $Y$. Are there ways to improve it for say $Y = 2X$ or $X= \sqrt{Y}$?
Thank you in advance!
Here, $\pi(X) = \sum_{p\leq x} 1$.