Your gateway to endless inspiration
The primes are often thought of as behaving like a random sequence, but there are patterns in their digits. The first frame shows how many of the first 100 primes end in 1, 3, 7 and 9. They all occur roughly the same number of times, so the four squares are almost exactly the same shade of red. The next frame shows how frequently a prime ending in 1 is followed by a prime ending in 3 - and so on. A structured pattern emerges, with the final frame showing the distribution of final digits in strings of 8 consecutive primes (for the first 2 million primes). [recent news] [visualization from] [code]