For a product of finitely many admissible linear forms, first omit a fixed finite set of locally obstructing primes. Apply the Buchstab identity at a large fixed , and bound each removed term by the Selberg upper-bound sieve. The convergent tail leaves a positive proportion with no prime divisor in . Their distinct prime divisors below are finite in number, while those above number at most , producing infinitely many almost-prime values.
For the polynomial , take and at odd primes. On odd squarefree integers, the summand is at least . Put and . The weight of odd pairs is . The pairs for which is not squarefree, is not squarefree, or each have weight at most . Indeed, the weighted count of multiples of an odd is . Moreover,
Hence the odd coprime squarefree pairs have weight at least . Their products are squarefree, and counts all ordered coprime factorizations of . This proves the displayed lower bound needed for the Selberg upper-bound sieve.
The Selberg upper-bound sieve replaces the indicator function of a sifted set by the square of a divisor sum. If the real Selberg sieve weights satisfy , then
When has no forbidden prime factors, the divisor sum is exactly one; otherwise its square is still nonnegative. Taking the weights to vanish for controls the error in summing this majorant. The main term is a positive quadratic form that can be diagonalized and minimized explicitly. This optimization, together with a bound for the remainder, is the central idea of the Selberg sieve.
For twin primes, take and let be the number of its roots modulo a squarefree integer . The Chinese remainder theorem makes a multiplicative arithmetic function, with and for odd primes. Thus the polynomial root density in a sieve is , and
Summing the majorant gives
where , with all indices squarefree. Here controls the error.
We carry out the Selberg sieve diagonalization. Put
For squarefree integers , multiplicativity gives
The identity behind the first equality is . Möbius inversion gives . The Cauchy-Schwarz inequality therefore implies
Define . Equality is attained at , giving . Inverting again, the optimizing Selberg sieve weights are
In particular . Since ,
The last inequality holds separately at , , and . Together with , this crude bound already makes the remainder , because .
We also need a lower bound for ; we prove it rather than presuppose a sieve asymptotic. For odd squarefree integers ,
where counts distinct prime factors. Put and . The total weight of odd pairs is . Exclude pairs for which has a square prime factor, has a square prime factor, or have a common prime factor. For each of these three categories the total weight is at most : for example, the weighted count of odd multiples of is , and the common-factor category uses for each variable. Moreover,
Hence the remaining odd coprime squarefree pairs have weight at least . Their products are squarefree, and counts all ordered coprime factorizations of . This proves the elementary lower bound for the twin-prime sieve denominator:
If and both are primes, survives the sieve. The at most smaller values are the only exceptions. Thus, with and , the twin-prime upper bound from a quadratic sieve becomes
Finally partial summation gives
The integral over is bounded by a constant times . The nonnegative partial sums are therefore bounded and increasing. Thus the reciprocal series over the smaller members of twin-prime pairs converges, a form of Brun's theorem. The upper bound does not assert that infinitely many twin primes exist.
The Selberg upper-bound sieve replaces an exact but long inclusion-exclusion expansion by a short nonnegative square, and then minimizes its main term. For an interval , the count of multiples of every integer is
Crucially the remainder bound is independent of .
Let and take real weights , supported on squarefree , with . If , the sum of these weights over divisors of is just one; for all other its square is nonnegative. Thus
Expanding and counting common multiples gives
This separates the local density from a uniform interval error. The weights will be chosen to minimize .
The Euler totient function identity yields the Selberg sieve diagonalization
Only squarefree occur. Inverting this finite triangular sum by Möbius inversion gives
Write . The Cauchy-Schwarz inequality gives , with equality at . The inverse formula then produces the optimal Selberg sieve weights
The constraints are satisfied, since the diagonal transformation is invertible and .
We need the leading constant, not just . Here is an elementary proof of the Selberg sieve denominator asymptotic. For define the multiplicative arithmetic function by
Checking the prime-local factors shows . Also : the local factors for absolute values differ from one by , and their logarithmic first moments sum . The signed local sums are all one, so absolute convergence gives . Using the harmonic number estimate,
For the last equality, is bounded and is bounded too.
The optimal Selberg weights have modulus at most one. To prove this here, for squarefree use . The product is the sum of over , , , with squarefree. All are distinct squarefree integers at most , and so these are a subset of the terms of . The displayed weight formula now gives . Consequently
Every prime in the interval exceeding survives the sieve; at most smaller primes must be restored. Choose . Then
and the uniform interval bound from optimal Selberg weights follows:
All constants are independent of . Given , make the absolute error in the coefficient smaller than by choosing large enough. Uniformly for every and ,
The Selberg upper-bound sieve replaces a difficult coprimality indicator by a nonnegative square whose coefficients can be optimized. Let , and suppose a finite sequence has divisibility counts
where is multiplicative on squarefree integers and . Choose real Selberg sieve weights supported on with . If an entry has no prime factor in , its only weighted divisor is , so its indicator is bounded above by the square of the divisor sum. Summing gives
where . This is an upper bound regardless of the signs of the weights.
Here is the optimization. On the permitted squarefree integers put
The identity
can be checked one prime at a time: a prime in both and gives the factor . Thus
Finite Möbius inversion gives , and in particular the condition becomes . The Cauchy-Schwarz inequality now yields
Equality is attained by . Inverting again gives the explicit optimizing weights
They satisfy . To see this, multiply out . The numerator becomes the sum of over distinct permitted integers with and , a subset of the terms in . We therefore have a main term and a controllable remainder. This proves the basic Selberg sieve diagonalization and the useful bound on the weights, rather than merely asserting an optimized density.
Apply it to the polynomial for . If is the number of roots of modulo squarefree , the Chinese remainder theorem gives
Use , , and sieve the indices for which has no prime factor at most . The local weights are
We claim . The following truncated-product argument supplies the necessary lower bound. Put , and consider all squarefree integers on the primes at most , with total weight
Give such an integer probability . Prime inclusion is independent with probability , so
by the Mertens first theorem, absorbing the prime separately. For sufficiently large , this is at most . The Markov inequality shows that at least half of lies on , all of which are terms in .
Moreover, partial summation applied to the Mertens first theorem gives
Indeed it is , and the contribution of has a finite limiting constant with tail . Expanding the logarithm of now gives
The error is bounded since . Consequently , proving the claim. The exponent two reflects the two forbidden classes at almost every prime.
For the remainder use and the simple bound . Hence
The number of surviving indices is therefore
Every pair of primes with survives, since both its prime factors exceed . The exceptional pairs with number at most . With we obtain
This is the twin-prime upper bound from a quadratic sieve. The method constructs a majorant and bounds the sifted set; it does not give a positive lower bound for twin primes.
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.
Let
and let be the product of the finitely many primes at most or dividing some nonzero difference . Sieve with the primes . For such a prime, the congruence has exactly distinct roots. By the Chinese remainder theorem, the root-counting function is multiplicative on squarefree coprime to , and
Thus the polynomial root density in a sieve applies with
Take and . For squarefree coprime to ,
The supplied mean-value estimate, partial summation, and removal of square factors using give
The error in the Selberg upper-bound sieve is
Consequently
If every is prime and all of them exceed , then has no prime divisor with , apart from a fixed finite set of divisibility cases absorbed into the implied constant. The cases with some contribute . Therefore
The weighted sifting function is
Let and let the real Selberg sieve weights vanish unless and . Since
expansion and the distribution hypothesis give
For the optimizing Selberg weights, the main quadratic form is , where
Thus the general upper bound is
If the sieve level is instead defined as the largest possible least common multiple, one supports the individual weights on ; this is the same statement after replacing by .
Take to contain the primes at least ; the exceptional local behavior at and is then harmless. Fix a sufficiently large constant and later choose
with fixed small . The Buchstab identity gives
The first term is for a positive constant , by direct counting in the finitely many permitted residue classes modulo .
For each term in the sum, part c supplies the local factor and remainders bounded by powers of . Apply the Selberg upper-bound sieve to the remaining prime conditions. Mertens theorem gives the dimension-three density
so the main terms in the Buchstab sum are bounded by
This convergent tail can be made smaller than by taking large. The weighted remainder terms are : the estimate controls the summed remainders, while part d controls uniformly the loss caused by the finite sieve level. Choosing sufficiently small relative to , and then taking large, therefore gives
for some absolute .
For every counted , the distinct prime divisors of are either below the fixed or at least . The first class contains at most primes, while makes the second class contain at most
primes. Since every prime divisor of , , or divides ,
after enlarging an absolute constant . A positive proportion occurs for arbitrarily large , so infinitely many such exist. This is the almost-primes from an upper-bound sieve and Buchstab identity method.
Replace by . The only change is at the locally obstructing primes: every value is divisible by , and every value is divisible by , so omit both primes from . For every , the three roots are distinct and again give and . All Selberg upper-bound sieve, Buchstab identity, and large-prime-factor estimates from part e are unchanged, proving the analogous result.
Prime-tuple upper bound from the Selberg sieve Created 2026-10-03 Updated 2026-10-14
For distinct natural numbers ,
Exclude the fixed primes dividing some so that the polynomial has exactly roots modulo every remaining prime, then apply the Selberg upper-bound sieve with level .
Put . As a Dirichlet convolution, , where is a multiplicative arithmetic function with , , and for . The local sums are one, so . The series converges, since the prime-local errors are . Consequently by the harmonic number estimate . This identifies the leading constant in the one-dimensional Selberg upper-bound sieve.
Twin-prime upper bound using Bombieri–Vinogradov Created 2026-10-06 Updated 2026-10-14
Apply the Selberg upper-bound sieve to the numbers with prime. For odd squarefree integers , the local count is and the density is . With sieve level , the normalizing sum is by the truncated Euler-product lower bound. The Selberg least-common-multiple weights have absolute values at most . The weighted arithmetic-progression error bound and Bombieri–Vinogradov theorem make their total error . Consequently the number of twin prime pairs with smaller member at most is .