Put , with the offset logarithmic integral function. The permitted standard sieve estimate can be taken as the Brun–Titchmarsh theorem:
For , . Also . Thus both terms defining are , uniformly over the permitted moduli. Apply the Cauchy-Schwarz inequality in the form
This is the weighted arithmetic-progression error bound. The prime omega function and Euler totient function weights can therefore be handled using an unweighted mean error and a separate positive sum.
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 .