Skip to main content
2 of 5
Improved formatting

How to explain this prime gap bias around last digits?

My question is related to this article by Oliver and Soundararajan (article about a bias in the distribution of the last digits of consecutive prime numbers).

After trying some python experimental researches on the prime gaps, I notice a bias in the gaps around each last digits {1,3,7,9}.

Could this bias be intrinsically linked to the bias found in the distribution of the last digits of consecutive prime numbers?

Experimental results

Here some experimental plot results up to the 3,500,000th prime number:


  • Cumulative/average prime gaps before + after last digits Cumulative/average prime gaps before + after last digits


  • Additional research on a waveform script of the sieve of Ératosthène, colored by last digits: plot 1 + plot 2

The script is on colab.research and is ready to fork