WOLFRAM|DEMONSTRATIONS PROJECT

Distribution of the Last Digit of the Primes

​
number of primes
10
base
10
This Demonstration shows the distribution of the last significant digit of the prime numbers expressed in any base. You will notice that bases that are themselves prime tend to produce much more even distributions than those that are not. The
y
axis shows the density, that is, the fraction of prime numbers that end in that digit.