∑p≤ND(p)=o(N) (the total sum of D(p) is of order less than N);
Each D′(p) is bounded below by a positive constant and uniformly bounded above, i.e., there exists c>0 such that D′(p)≥c for all p (its “order is equal to the order of 1”).
We call such w an admissible weight function.
3. Two Special Sequences CH and C1
Define CH: for every x,
CH,x={1,0,∀p∈P,p<x⇒p<x−H,∃p∈P,x−H≤p<x.
In particular, when x is prime, CH,x=0 if and only if there exists a prime p∈[x−H,x), i.e., the gap between x and the preceding prime is ≤H. Such primes are called bad primes, while the others are good primes.
Define C1 as the all‑1 sequence: C1,x=1 for all x.
The total weight is
S(N,C)=n≤N∑F(n)w(n).
Let
Δ=S(N,CH)−S(N,C1).
4. Expressing Δ
For C1: every prime satisfies F1(p)=1; for a composite x, since there exists a prime factor y with F1(y)=1, we have F1(x)=0. Hence
S(N,C1)=p≤N∑w(p).
For CH: let G={p≤N:CH,p=1} (good primes) and B={p≤N:CH,p=0} (bad primes). Then
If p∈G, then FH(p)=1; if p∈B, then FH(p)=0.
For a composite x, FH(x)=1 if and only if all prime factors of x belong to B (because if any prime factor y∈G, then FH(y)=1 forces FH(x)=0; if all prime factors are in B, they satisfy FH=0, so FH(x)=1).
Therefore
S(N,CH)=p∈G∑w(p)+x≤N,x∈/Pall prime factors∈B∑w(x).
Thus
Δ=(p∈G∑w(p)+x≤N,x∈/Pall prime factors∈B∑w(x))−p≤N∑w(p)=x≤N,x∈/Pall prime factors∈B∑w(x)−p∈B∑w(p).(2)
5. Classification by Smallest Prime Factor
For each p∈B, define
Ap={x≤N:x∈/P,p∣x,min(q∣x)=p,all prime factors∈B}.
Every composite x with all prime factors in B is uniquely assigned to Ap (where p is its smallest prime factor). Hence
x≤N,x∈/Pall prime factors∈B∑w(x)=p∈B∑x∈Ap∑w(x).
Notice that for any prime p (including those in B), the sum in condition (1) is exactly ∑x∈Apw(x), because FH(x)=1 is equivalent to “all prime factors are in B”, and the condition that the smallest prime factor is p defines Ap. Thus from (1), setting
εp=w(p)−x∈Ap∑w(x),
we obtain
−D(p)<εp<D′(p).(4)
Equation (3) then becomes
Δ=−p∈B∑εp.(5)
7. Comparing Orders
From (4), each εp is bounded above by D′(p) (positive and bounded below by a positive constant) and bounded below by −D(p) (which may be small). Since ∑p≤ND(p)=o(N) and ∣B∣≤π(N)=O(N/logN), the crucial point is that ∑p∈BD(p)=o(N); this contribution is negligible compared to ∣B∣ (which could be as large as π(N)). On the other hand, D′(p) is of order 1, i.e., there exists c>0 such that D′(p)≥c for all p, and D′(p)=O(1).
If we can choose an admissible weight function w such that εp has the same sign and comparable magnitude as D′(p) (for instance, by construction making εp close to the positive value D′(p)), then ∑p∈Bεp is of the same order as ∑p∈BD′(p), and consequently ∣Δ∣ is of the same order as ∑p∈BD′(p). Since each D′(p) has a positive constant lower bound, ∑p∈BD′(p) is of the same order as ∣B∣ (the number of bad primes).
Thus, under the assumption that an admissible weight function exists with εp≍D′(p) (i.e., εp is positive and has a positive lower bound), we have
∣Δ∣≍∣B∣.(6)
8. Equivalence
Denote B(N,H)=#{p≤N:p has a gap≤H to the previous prime}. By (6), ∣Δ∣ and B(N,H) are of the same order. Therefore:
If bounded prime gaps hold, i.e., there exists some H such that B(N,H)→∞ as N→∞, then ∣Δ∣→∞, i.e., Δ is unbounded.
Conversely, if for some H the quantity Δ is unbounded as N→∞, then B(N,H)→∞, meaning there are infinitely many primes with gap ≤H, i.e., bounded prime gaps exist.
Hence the bounded prime gap problem is equivalent to the existence of a constant H such that Δ=S(N,CH)−S(N,C1) is unbounded as N→∞.
9. Remarks
The argument relies on the existence of an admissible weight function w and error terms D(p),D′(p) satisfying (1), together with a construction that ensures εp is of the same order as D′(p) (e.g., εp=D′(p)). In practice, such weight functions can be constructed using sieve methods from analytic number theory (e.g., the Selberg sieve or the Goldston–Yıldırım approach), where D′(p) is typically of order 1 and D(p) can be treated as an error term. Consequently, this equivalence provides a new perspective on the bounded prime gap problem: it suffices to analyze the growth of Δ.