Let and form
For sufficiently large , every factor is positive and at most . Every odd prime divisor of makes a quadratic residue modulo , so part (a) gives or .
For an odd prime power , the congruence has at most two residue classes, because each root modulo is simple and lifts uniquely. Therefore
Since for odd ,
The prime contributes at most , because . If
then, for all sufficiently large , and hence
On the other hand, the product contains at least factors for large , and every one satisfies
once is sufficiently large. Thus
Comparing the two estimates gives
for every sufficiently large . This is the elementary logarithmic lower bound for primes in the quadratic-residue classes of two.