Distribution of the Last Digit of the Primes

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

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 axis shows the density, that is, the fraction of prime numbers that end in that digit.

Contributed by: Soumyajit Mandal (March 2011)
Open content licensed under CC BY-NC-SA



This Demonstration was created during the New Kind of Science Summer School 2008 (NKS|Online) in Burlington, Vermont.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.