Let count pairs both prime with . The Selberg sieve replaces primality by the necessary condition that the polynomial have no small prime divisor. Its strength is a nonnegative quadratic majorant with optimizable divisor weights; its limitation is that a sifted integer need not be prime.
For a prime , let count the forbidden residues of modulo . We have , since the two roots coincide modulo two, and for every odd prime, where the roots are zero and . The Chinese remainder theorem makes multiplicative on squarefree integers. With ,
These local densities constitute the sieve distribution for the twin-prime problem. Since , it is a dimension-two sieve, which is why the expected upper bound has two logarithms in the denominator.
Let and choose real Selberg sieve weights supported on squarefree , with . If , the only supported divisor of is one. Hence
Expanding and using the distribution of the polynomial roots gives
Here denotes the least common multiple. The divisor-square support reaches , although each individual weight is supported only to ; keeping these two levels distinct is essential for estimating the remainder.
The Selberg sieve diagonalization solves the main-term minimization exactly. On squarefree integers put
Multiplicativity gives
Also, Möbius inversion gives . Therefore the Cauchy-Schwarz inequality proves
with equality at . Inverting the divisor sums gives the optimizing weights
In particular and .
These weights have , which supplies a simple rigorous remainder estimate. Indeed, multiply the inner sum by . The terms are for distinct squarefree integers with and , hence form a subset of the sum defining . Since and ,
Thus
For this sieve and for odd primes. Here is a direct proof that , sufficient for the upper bound. Put
The Mertens theorem for reciprocal primes implies , by taking logarithms and using the convergence of . Give each divisor probability . Its expected logarithm is
by the Mertens first theorem. With this is at most for large . The Markov inequality shows that at least two thirds of the total product weight has . These terms occur in , so . Conversely , proving the claim without treating an untruncated Euler product as a truncated divisor sum.
Choose, for example, . Any twin-prime pair with smaller member greater than survives this sieve; pairs with smaller member at most contribute at most . Consequently
The chosen level is deliberately enough to prove the correct logarithmic order; sharper level and remainder analyses improve the numerical upper-bound constant.
The local correction factor also explains the conjectured main-term constant. Relative to two independent primality conditions, the singular series is
The twin-prime constant is positive and convergent because its logarithm has an absolutely convergent tail. The factor two at records that only one parity is allowed, while each odd-prime factor records the two distinct forbidden residues. The Hardy–Littlewood twin-prime asymptotic conjecture predicts
This is a conjecture, not a consequence of the upper-bound calculation.
The parity problem in sieve theory is the obstruction to reversing the argument. The nonnegative square majorizes all survivors, including composites with sufficiently large prime factors; small-divisor information does not isolate the desired prime-factor parity or force both factors to be prime. Therefore the Selberg sieve establishes the correct upper-bound scale and the arithmetic local factors, but by itself does not prove a positive lower bound for twin primes, their infinitude, or the conjectured asymptotic.
The remainders in the sieve distribution are defined by
Multiply the pointwise inequality from part (a) by and sum. Finite rearrangement gives
To identify the main quadratic form, put . For squarefree integers , multiplicativity gives
The second identity is also valid if or is not squarefree: both sides then vanish. Therefore the Selberg sieve diagonalization gives
This proves . Notice that the hypotheses do not force to vanish on non-squarefree integers; those coefficients simply make no contribution to this main quadratic form because .
Take sieve level and coefficient cutoff . Let be the finite set of odd primes at most . Give one unit of weight for each prime . For an odd squarefree integer on these primes, the sieve distribution is
The residue is coprime to every such , and for all permitted primes. Values of outside the permitted set can be chosen arbitrarily in at primes and extended multiplicatively on squarefree integers.
For the Selberg sieve normalizing sum, and
Here is a direct proof of this lower bound. Restrict the Euler product to . The Mertens first theorem gives , which is at most for large . The Mertens second theorem gives
The truncated Euler-product lower bound, with , now gives .
Use the minimizing Selberg sieve weights from Question 3. Their absolute values are at most one, so the Selberg least-common-multiple weights satisfy . Parts (a) and (b) control the remainder:
The first factor uses the Bombieri–Vinogradov theorem; is below for all sufficiently large . The second uses the permitted . The PDF has the exponent nine, which the TeX transcribes incorrectly. Choose to obtain .
Every twin prime pair with survives the finite sieve, while the pairs with number at most . The Selberg upper-bound sieve thus gives
Therefore the twin-prime count is . The finite cutoff on the forbidden primes is essential: sieving by all odd primes would also discard the large prime values that we are trying to count.
In the level- convention used here, the Selberg upper-bound sieve states that a nonnegative sequence with sieve distribution satisfies
It follows by minimizing the quadratic form with the Selberg sieve weights and using the Selberg least-common-multiple weights bound .
Sieve the interval by two and by the primes congruent to three modulo four, up to . The interval divisor counts give
Thus , , and uniformly in the location of the interval. Take and .
To bound , let and form the Euler product over the forbidden primes at most . The given reciprocal-prime sum in residue class one modulo four, subtracted from the Mertens second theorem, yields
Moreover, the Mertens first theorem bounds the logarithmic mean by for large . The truncated Euler-product lower bound gives .
The full-range summatory bound for three to the prime omega bounds the error by , which is . Every integer whose prime factors are all congruent to one modulo four survives this finite sieve. Therefore the half-dimensional interval sieve gives
The constants are independent of . Enlarging them covers the bounded range of before the asymptotic product estimates apply, so the result holds throughout .
Suppose the sieve distribution has the form
where is a multiplicative arithmetic function on squarefree integers and . Define
Then the Selberg upper-bound sieve states
for , with immaterial endpoint changes under other level conventions.
To construct the weights, put
and set
Then . If , the divisor sum equals one, and hence
Summing against and expanding gives
The Selberg diagonalization of the positive quadratic form gives
Finally, grouping the error by gives at most pairs for each squarefree ; using yields the stated remainder.
For a positive integer , define
The sequence has sieve distribution when is a multiplicative arithmetic function on the squarefree divisors of , with , and
for every . The function models the local density of divisibility by , while is the remainder.
Put and let be the number of roots of modulo . For squarefree , the Chinese remainder theorem gives
Indeed, for the three roots are distinct. Counting in each of the residue classes gives
Consequently a suitable sieve distribution is
This is the polynomial root density in a sieve calculation.
Polynomial root density in a sieve Created 2026-09-28 Updated 2026-10-03
For an integer polynomial and squarefree , let count the roots of modulo . The Chinese remainder theorem makes multiplicative, and
Thus and define a sieve distribution.