Let be a finite nonnegative sequence, let be a set of prime numbers, and define
The sifting function is
For a finite set of integers, take to be the number of occurrences of in ; then counts members divisible by no below . For , write
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 .
Write
The sifting function is
For each integer , Möbius inversion in its divisor-indicator form gives
Summing over the finite set and interchanging the finite sums yields
This is the inclusion-exclusion formula encoded by the Möbius function.
Selberg sieve Created 2026-10-03 Updated 2026-10-06
The Selberg sieve uses optimized quadratic weights to bound the size of a sifted set.
Sieve theory Created 2026-09-24 Updated 2026-09-28
Sieve theory estimates the number of integers that avoid specified residue classes modulo primes.
Sifting function Created 2026-09-24 Updated 2026-10-06
For a finite integer set and a set of primes , the sifting function counts elements of divisible by no prime in below :
For a nonnegative weighted sequence , the same notation means .