For convenience, we will prove instead that for some
\(c = c(\epsilon)\text{,}\) for any
\(N\) there are at most
\(c\) primes
\(p\leq \sqrt{N}\) with
\(q(p) > N^\epsilon\text{.}\)
Let
\(P\) be the set of primes
\(p \leq \sqrt{N}\) such that
\(\legendre{n}{p} = 1\) for all
\(n \leq N^\epsilon\text{,}\) and let
\(\Omega_p\) be the classes of quadratic nonresidues mod
\(p\text{.}\) (This is indeed a large sieve because
\(\omega(p) = (p-1)/2\text{,}\) so
\(h(p) = (p-1)/(p+1) \sim 1/2\) as
\(p \to \infty\text{,}\) whereas in our earlier examples
\(\omega(p)\) was bounded.)
We will now sieve on the set
\(\{1, \dots, N\}\text{,}\) i.e., take
\(a_n = 1\) for
\(1 \leq n \leq N\) and
\(a_n = 0\) otherwise. The resulting sifted set includes all
\(n \leq N\) with no prime divisors greater than
\(N^\epsilon\text{;}\) if we let
\(Z_\epsilon\) be the number of these, then
Theorem 16.4 applied with
\(Q = \sqrt{N}\) yields
\begin{equation*}
Z_\epsilon \leq 2N H^{-1}\text{.}
\end{equation*}
On the other hand, if we let \(X_\epsilon\) be the number of primes \(p \leq \sqrt{N}\) with \(q(p) > N^\epsilon\text{,}\) then because \(h(p) \geq 1/3\) for all \(p\text{,}\)
\begin{equation*}
\frac{1}{3} X_\epsilon \leq \sum_{p \leq \sqrt{N}, q(p) \geq N^\epsilon}
h(p) \leq H\text{.}
\end{equation*}
Hence \(X_\epsilon Z_\epsilon \leq 6N\text{.}\)
To conclude, we need to show that \(Z_\epsilon \geq cN\) for some \(c>0\text{.}\) In fact it can be shown that \(Z_\epsilon \sim cN\) for some \(N\text{,}\) but as we don’t care about the particular constant, it will suffice to exhibit a special class of numbers being counted by \(Z_\epsilon\) which are sufficiently numerous. Namely, take \(n = m p_1 \cdot p_k \leq N\) with \(N^{\epsilon - \epsilon^2} \lt p_j \lt N^\epsilon\) for \(j=1, \dots, k =
\epsilon^{-1}\text{;}\) then
\begin{equation*}
Z_\epsilon \geq \sum_{p_1,\dots,p_k} \left\lfloor \frac{N}{p_1 \cdots p_k}
\right\rfloor \geq cN\text{,}
\end{equation*}
completing the proof.