Skip to content
theschoonover.net
Download resume

December 7, 2025

Defeating the Sieve Part 2: The Mod 3 Trap

In Part 1, we discovered that prime sums have 'Shields'—mathematical armor that blocks divisibility. But when I stress-tested the theory against 100 Billion primes, I found the opposite of a shield. I found a trap.

Rust Number Theory Visualization

Last week, I wrote about Defeating the Sieve. I showed how specific prime gaps (like Gap 34) act as “Shields,” locking the sum of consecutive primes into a safe residue class that mathematically guarantees they cannot be divisible by 3, 5, or 7.

I thought I had the complete picture. I was wrong.

To validate the theory, I decided to run a “Boss Fight.” I pointed my Rust tool at Gap 210.

Gap 210 () is a “Champion Number.” It is divisible by every prime up to 7. Under my original theory, I expected it to be neutral—or perhaps even a “Super Shield” due to its massive neighbors (209 and 211).

Instead, it crashed.

The 100 Billion Stress Test

I spun up a simulation to scan the first 100 Billion () primes. This wasn’t just a sampling; it was a census.

When the results came back, Gap 210 wasn’t just underperforming; it was failing spectacularly.

For context, a random odd number in this range has about an 8.6% chance of being prime. Gap 210 wasn’t just “exposed” to randomness; it was performing worse than random.

How can a number so structurally perfect be so toxic to prime sums?

The “Mod 3 Trap”

I realized my “Shielding Theory” was only half the equation. It explained the Highs (why Gap 34 wins), but not the Lows.

The culprit is the number 3.

Recall the sum formula: .

The Shield (Gap 14)

Gap 14 is not divisible by 3 (). Because is prime, it cannot be divisible by 3. But for Gap 14, also cannot be , or the neighbor would be divisible by 3. This forces into a specific slot (). Result: The sum is guaranteed safe.

The Trap (Gap 210)

Gap 210 is divisible by 3 (). This breaks the lock. The prime is free to be or .

It becomes a coin flip. The sum fails 50% of the time.

Why “Exposed” is Worse Than Random

You might think, “Okay, 50% failure isn’t great, but isn’t that just standard randomness?”

No. It is worse.

In the wild, if you pick a random odd number, it has a 33% chance of being divisible by 3. That means 66% of random odd numbers are “safe” from 3.

But for Gap 210, only 50% are safe.

By being divisible by 3, Gap 210 loses the natural “odd number advantage.” It falls into a statistical trap that penalizes it relative to the baseline.

We calculated the exact penalty factor:

The Unified Field Theory

When we apply this 0.75x Penalty to gaps divisible by 3 (like 6, 30, and 210), the data snaps into focus.

Loading analysis data from 10 Billion Primes...

The scatter plot above shows our new prediction model against the actual data from the run. The correlation is no longer just “good”; it is mathematically precise.

Conclusion

Gap 34 isn’t just lucky because it has armor. It is lucky because it avoids the trap.

In the architecture of prime sums, there are three forces at play:

  1. The Baseline: The raw logarithmic density of primes.
  2. The Shield: Neighbors () that block divisibility.
  3. The Trap: Factors () that invite divisibility.

The “randomness” of primes is just a lack of resolution. If you look close enough, the dice are loaded.

View the Updated Code on GitHub