Prime Number Patterns
π’ The Curious Case of Prime Endings
Recent mathematical discoveries have unveiled an unexpected pattern in prime numbers: primes tend not to repeat their last digits when considered consecutively. This finding challenges the long-held assumption that primes appear randomly.
π§ Prime Endings and Expected Randomness
Most prime numbers (excluding 2 and 5) end in one of four digits: 1, 3, 7, or 9. If primes were truly random, one would expect each of these endings to be equally likely, appearing approximately 25% of the time.
π² Consecutive Prime Endings
When examining consecutive primes, there are 16 possible combinations for their last digits (e.g., 1-1, 1-3, 3-7, 9-1). If random, each of these 16 pairs should appear 1/16th (6.25%) of the time.
However, a study by mathematicians at Stanford, analyzing the first 100 million primes, revealed a significant deviation from this randomness:
If a prime ends in 9, the next prime is more likely to end in 1 (32%) than in 9 (18%).
This is a stark contrast to the expected 25% for each ending.
π Non-Repetitive Bias
A key observation is that diagonal entries (pairs where the last digit repeats, like 1-1, 3-3, 7-7, 9-9) are least likely to occur. This suggests an inherent bias against repetition in consecutive prime endings.
β Debunked Explanations
Several intuitive explanations for this bias have been considered and dismissed:
π Prime Gaps
One hypothesis suggests that if a prime ends in 9, the next prime ending in 9 might be "further away" than one ending in 1, 3, or 7.
This would imply a search for prime gaps less than 10.
However, the number of such small prime gaps is insufficient to explain the observed bias, which is much stronger.
βοΈ Chebyshev's Bias
Another idea is that the bias originates from an inherent non-randomness in the individual prime endings themselves.
Chebyshev's bias is a known, slight tendency for primes ending in 3 and 7 to be slightly more frequent.
If this were the cause, pairs like 3-3 and 7-7 should appear more often.
In reality, the opposite is true: 3-3 and 7-7 are among the least likely pairs, while 9-1 is the most common. This completely contradicts Chebyshev's bias as an explanation.
π Base 10 Artifact
It might seem that this pattern is merely an artifact of the base-10 number system.
If it were a fundamental property of primes, it should persist in other number bases.
Researchers tested this in base 3. In base 3, primes (other than 3 itself) can only end in 1 or 2.
Again, a similar bias was found: the repeating pairs (1-1 and 2-2) were less likely than the non-repeating pairs (1-2 and 2-1).
This confirms the bias is a fundamental property of primes, not specific to base 10.
Base 3 Example:
Expected random distribution for consecutive primes in base 3:
1-1: 25%
1-2: 25%
2-1: 25%
2-2: 25%
Actual findings (first million primes):
Repeating pairs (1-1, 2-2) occurred less than 250,000 times each.
Non-repeating pairs (1-2, 2-1) occurred more than 250,000 times each.
π‘ The Hardy-Littlewood Conjecture and a Proposed Formula
The mathematicians investigating this phenomenon have proposed an explanation based on a modified version of the Hardy-Littlewood conjecture.
The Hardy-Littlewood conjecture, dating back over a century, deals with the density of primes in specific patterns (e.g., twin primes, cousin primes, sexy primes).
Although unproven, there is significant numerical evidence supporting its truth.
π Conjectured Formula
Using a modified version of this conjecture, a formula has been developed to predict the proportion of specific prime ending patterns (a, b).
The general form of the formula is:
Proportion (a, b) = (1 / Number of Allowed Endings) * Factor
Number of Allowed Endings: In base 10, there are 16 allowed endings for consecutive primes, so this term is 1/16. In base 3, there are 4, so it's 1/4.
Factor: This "thing" depends on whether the pattern repeats (
a = b) or not (a β b).
Example in Base 3:
For repeating endings (a = a, e.g., 1-1 or 2-2):
Proportion (a, a) = (1 / 4) * (some value)
For non-repeating endings (a β b, e.g., 1-2 or 2-1):
Proportion (a, b) = (1 / 4) * (some other value)
This formula, although still conjectured due to its reliance on the unproven Hardy-Littlewood conjecture, fits the observed evidence remarkably well.
βΎοΈ Long-Term Implications
While this bias is significant for primes up to even a trillion, it is conjectured to diminish over infinite scales. In the "great infinity of numbers," this bias is expected to eventually "even out," but it remains a noticeable feature in the accessible range of prime numbers.

Ask anything
We've read this whole study set, so questions about it get the best answers.