Theorem 2.2 (Selberg sieve). Assuming that:

  • z≥2

  • A⊆ℤ finite

  • P⊆ℙ

  • Assume the sieve hypothesis

  • h:ℕ→[0,∞) be the multiplicative function supported on square-free numbers, given on the primes by

    h(p)={g(p)1−g(p)p∈P0p∉P

Then
S(A,P,z)≤|A|∑d≤zh(d)+∑d≤z2d|P(z)τ3(d)|Rd|.