Abstract#
Prime numbers are often modeled using probabilistic frameworks, such as Cramér's random model, to understand macro-level distribution patterns. However, local prime behavior is strictly governed by deterministic arithmetic properties. This paper presents empirical evidence from a computational analysis of prime pairs up to 2 million, examining the distributional patterns of twin primes (gap 2), cousin primes (gap 4), and sexy primes (gap 6) relative to a harmonic lattice of step 6. Our findings reveal that approximately of twin and cousin primes, and approximately of sexy primes (with the remaining structurally excluded by modulo 3 constraints), have their information potential value land within of another prime at multiples of 6. The data exhibits systematic harmonic preferences, with full-step multiples of 12 showing significantly higher frequencies than half-step intervals. These results highlight the powerful, localized deterministic constraints that operate within the pseudo-random macro-distribution of primes, demonstrating that local configurations of prime pairs are heavily governed by strict, underlying modular architectures.
Introduction
The distribution of prime numbers has fascinated mathematicians for centuries. While the Prime Number Theorem establishes that , the local behavior of primes particularly the gaps between consecutive primes -- has resisted simple characterization [1]-[3].
The dominant macro-level conceptual framework for understanding prime gaps has been probabilistic, originating with Cramér's 1936 random model. This model treats primes as independent random events with probability , successfully predicting the scale of typical prime gaps. However, number theorists have long recognized that this "randomness" is a heuristic modeling tool; primes are inherently deterministic, and probabilistic models must be refined by arithmetic constraints, such as divisibility by small primes [3].
Within this paradigm, special prime pairs -- twin primes (gap 2), cousin primes (gap 4), and sexy primes (gap 6) -- have been studied extensively. Previous research has noted certain regularities in prime gaps. Szpiro [4] observed that gaps of size 6 and multiples of 6 occur more frequently than expected under unrefined random models, attributing this to the fact that all primes greater than 3 are of the form .
The present study extends this line of inquiry by examining not merely the gaps between primes themselves, but the relationship between prime pairs and a fixed harmonic lattice of step 6. Specifically, we investigate whether for each prime pair with , the quantity tends to land near another prime at a multiple-of-6 offset.
Our results reveal that this relationship holds with remarkable consistency: approximately of twin and cousin primes, and approximately of sexy primes, satisfy this property within the range . Rather than contradicting probabilistic models, this near-universal participation illustrates the intense, deterministic rigidity of the local structural corridors in which prime pairs reside.
Context and Novelty of the Present Study#
The theoretical foundations of deterministic constraints within prime distributions are well-established. Dirichlet's theorem on arithmetic progressions (1837) proved that sequences of the form (where and are coprime) contain infinitely many primes, establishing the deterministic "corridors" in which primes must reside. In the 20th century, the Hardy-Littlewood conjectures formalized the concept of "admissible sets" -- constellations of numbers that avoid forced divisibility by small primes, thereby dramatically increasing the local density of prime occurrences.
However, while these macro-level theories are foundational, computational literature has primarily focused on either the asymptotic frequencies of specific prime gaps (e.g., Szpiro's observations on multiples of 6) or the exhaustive search for massive prime .
The novelty of this present study lies in the introduction of a specific, localized heuristic construct: the Information Potential, defined as . To the author's knowledge, prior computational sieves have not utilized this specific combinatorial pivot to map local prime densities. By anchoring a step-6 harmonic lattice to this exact potential, this study empirical demonstrates that the theoretical concept of admissible sets translates into a remarkably highly efficient, near-certain predictive bounding.
Specifically, we demonstrate that this novel framing captures a prime of the time within an exceptionally tight window of just 16 offsets for twins and cousins. While the underlying modular mechanics (such as modulo 2 and 3 constraints) are established mathematics, the empirical demonstration of this specific algorithmic trap -- and its staggering efficiency -- represents a uniquely high-resolution mapping of local prime architecture that has not been previously documented in computational number theory.
Methodology
Definitions#
Following standard terminology:
-
Twin primes: Pairs of primes
-
Cousin primes: Pairs of primes
-
Sexy primes: Pairs of primes
For each prime pair, we define the information potential as: where is the gap (2, 4, or 6). This quantity represents the sum of the endpoints minus one.
Harmonic Offsets#
We consider offsets that are multiples of 6 from to (excluding zero), corresponding to 16 discrete positions: For each prime pair, we test whether is prime for any .
Computational Approach#
We generated all primes up to 4,000,049 using the Sieve of Eratosthenes, yielding 283,149 primes. For each prime pair type, we identified all pairs with , computed , checked primality of for all offsets, and recorded frequencies. The analysis was performed using Python.
Rationale for Offset Selection#
The choice of multiples of 6 is motivated by the fact that all primes greater than 3 are congruent to (mod 6) [4]. Consequently, numbers that are multiples of 6 from any starting point will preserve the residue class modulo 6 of the base, forming a natural harmonic lattice for prime distribution.
Results
Twin Primes (Gap 2)#
For twin primes, . The analysis covered 14,871 twin primes up to 2 million. Overall confirmation rate: 14,701 of 14,871 twin primes (98.86%) had at least one prime at a multiple-of-6 offset within .
The three most frequent offsets are (32.75%), (29.57%), and (29.10%). Offsets that are multiples of 12 (even ) generally show higher frequencies. A sign alternation pattern emerges among even : dominates over , while dominates over .
Cousin Primes (Gap 4)#
For cousin primes, . Overall confirmation rate: 14,530 of 14,741 cousin primes (98.57%). The most frequent offsets shifted to (29.45%), (29.22%), and (25.97%), suggesting that preferred offsets shift with gap size.
Sexy Primes (Gap 6)#
For sexy primes, . Overall confirmation rate: 11,983 of 24,531 sexy primes (48.85%). This dramatically lower confirmation rate suggests a structural bifurcation within the sexy prime population, fundamentally altering the available offsets.
Offset-specific frequencies for Twin Primes#
| Offset k | Count | % | Offset k | Count | % |
|---|---|---|---|---|---|
| -48 | 2,621 | 17.62% | +6 | 2,916 | 19.61% |
| -42 | 3,625 | 24.38% | +12 | 2,565 | 17.25% |
| -36 | 4,870 | 32.75% | +18 | 3,660 | 24.61% |
| -30 | 2,748 | 18.48% | +24 | 4,398 | 29.57% |
| -24 | 2,464 | 16.57% | +30 | 2,380 | 16.00% |
| -18 | 3,097 | 20.83% | +36 | 2,761 | 18.57% |
| -12 | 3,953 | 26.58% | +42 | 2,625 | 17.65% |
| -6 | 3,498 | 23.52% | +48 | 4,328 | 29.10% |
Discussion
The Modulo 6 Constraint and Sexy Prime Bifurcation#
The striking difference in confirmation rates between twins/cousins () and sexy primes () is a direct consequence of modulo 6 arithmetic. For any prime , or 5 (mod 6).
For sexy primes (), two cases arise:
If (mod 6), then (mod 6), and (mod 6). If (mod 6), then (mod 6), and (mod 6).
When (mod 6), every number of the form is also (mod 6) and therefore divisible by 3. Thus, none of the offsets can be prime. This perfectly accounts for half of all sexy primes being structurally excluded, explaining the confirmation rate.
Refining the Probabilistic Expectation#
At first glance, finding a prime in of cases seems to conflict with unrefined probabilistic models. For , . The unadjusted probability of a random number being prime is roughly . Testing 16 independent offsets at this rate yields an expected success rate of .
However, our target is strictly constructed from prime pairs. It is not a random integer. By searching only at offsets, we strictly search within a valid modulo 6 class, eliminating divisibility by 2 and 3 and immediately doubling the baseline probability to . Furthermore, because and are primes, is heavily skewed to be coprime to 5 and 7 as well. Incorporating these localized deterministic constraints pushes the local density of primes in these specific offsets to approximately 20-25%.
Given a localized probability of any specific offset being prime, the chance of finding at least one prime across 16 offsets is . Therefore, the 99% empirical confirmation is a rigorous, highly accurate validation of probabilistic models once they are correctly refined by local modular architecture.
Harmonic Preferences and Sign Asymmetry#
Across all three types, multiples of 12 (even ) consistently show higher frequencies. Furthermore, the sign asymmetry (e.g., appearing at while is ) heavily implies modulation by higher moduli, such as modulo 7 or modulo 11. These underlying deterministic constraints bias the distribution of successful values depending on the specific residues of .
Conclusion
This study demonstrates that twin, cousin, and sexy primes exist within highly structured, deterministic corridors. Approximately of twin and cousin primes, and of sexy primes (with the remainder systematically excluded by modulo 3), find a prime within at a multiple-of-6 offset. Rather than negating probabilistic models, these findings powerfully illustrate how macro-level pseudo-randomness is built upon strictly ordered, local modular arithmetic. Future work should mathematically map the modulo 7 and modulo 11 constraints to formally prove the observed sign asymmetries and offset preferences.
References#
- E. Hibbs, "Applying the new primer on prime numbers," WSEAS Transactions on Mathematics, April 2010.
- "Prime k-tuple," Wikipedia.
- A. Dixit and S. Pathak, "Patterns In Primes Via Probability," IISER Kolkata, December 2025.
- G.G. Szpiro, "Peaks and gaps: Spectral analysis of the intervals between prime numbers," Physica A, vol. 384, no. 2, pp. 202-206, 2007.
- OEIS Foundation Inc., "Number of cousin primes < 10^n," OEIS, sequence A080840.
- L. Wang and L. Wang, "Pseudo Random test of prime numbers," arXiv:math/0603450, 2006.
- Vidvashree H R et al., "Patterns in Primes..." Int. J. of Technology, Knowledge and Society, vol. 15, no. 1, 2025.