Primearium Lab · primes in your everyday life

Prime Time

Prime numbers are hiding on your clock, in your calendar and in your age. Watch the clock glow whenever the time is prime, then find your own prime birthdays.

The prime clock

Read the time as one number: 21:53 becomes 2153. When that number is prime, the minute glows gold. Add the seconds (215317) and you get prime moments that flash by in a second.

The time as HHMM
The time as HHMMSS
Minute of the day

Next prime minute

Next prime moment

The ring lights up
  • Gold tick: a prime minute
  • Gold dot: a prime second (2, 3, 5 … 59)
  • Star: the whole time HHMMSS is prime

Or move over the ring (tap on a phone) to try any minute of the day.

Why does the ring sparkle most after midnight? Small numbers are prime more often than big ones, so the gold ticks crowd together at the top and thin out through the day. And a prime minute always ends in 1, 3, 7 or 9. The only exceptions are 00:02 and 00:05.

Your prime calendar

Your birthday hides prime numbers too. Type it in to find your prime birthdays, the prime days of your life and the dates that turn into prime numbers.

Your birthday stays on this device, in the browser's local storage. It is never sent anywhere.

Today as a number

The prime map of a year

Each square is one day. Choose what to turn into a number: gold squares are prime. Touch a square to see its numbers.

todayyour birthday

Prime years

Years are numbers too, and some of them are prime: the number of a prime year can be divided evenly only by 1 and by itself.

How many prime years does a century have?

One bar for each century from the year 1 to the year 3000. Choose a bar to see its prime years.

prime yeartwin prime yearthis year

Why do the bars get shorter? The bigger the numbers, the rarer the primes: near a number n roughly one number in ln n is prime. The first century had 25 prime years; around the year 2000 a century has 13 or 14. They never run out, though. Euclid proved about 2300 years ago that there are infinitely many primes.

Fun facts you can check yourself

Every number below is counted by this page in your browser, case by case. No estimates.

A convention, not nature Whether a time or a date is “prime” depends on how we write it: the calendar, the order of day, month and year, the 24-hour clock, base ten. It says nothing about the day itself. The counting, however, is exact.

For mathematicians

Conventions. On a 24-hour clock HHMM = 100·h + m and HHMMSS = 10000·h + 100·m + s, so 00:07 is the number 7; the minute of the day is 60·h + m + 1. Dates use the Gregorian calendar: DDMMYYYY = 106·d + 104·m + y, YYYYMMDD = 104·y + 100·m + d, MMDDYYYY = 106·m + 104·d + y. Every count on this page is an exhaustive check of a finite set, cross-checked by a separate program using an independent Miller–Rabin test.

Proven. DDMMYYYY ≡ MMDDYYYY ≡ YYYY (mod 104), so both numbers end in the last digit of the year: in a year ending in 0, 2, 4, 5, 6 or 8 neither of them is ever prime. YYYYMMDD ends in the day, so only days ending in 1, 3, 7 or 9 qualify (at most 13 days a month). A reading HHMM ends in the last digit of the minute: apart from 00:02 and 00:05 every prime minute ends in 1, 3, 7 or 9.

Conjecture. There are infinitely many twin primes (p, p + 2); the question has been open since at least 1849 (de Polignac). Proven. Infinitely many pairs of consecutive primes differ by at most 246 (Zhang 2013: at most 70,000,000; Maynard and Polymath 8b, 2014: at most 246). So nobody knows yet whether twin prime years such as 2027 and 2029 keep coming forever.

Sources: OEIS A000040 (primes), A001097 (twin primes), A038800 (primes per century); G. H. Hardy, E. M. Wright, An Introduction to the Theory of Numbers; Y. Zhang, Bounded gaps between primes, Annals of Mathematics 179 (2014); D. H. J. Polymath, Variants of the Selberg sieve, and bounded intervals containing many primes, Research in the Mathematical Sciences 1 (2014); age record: Jeanne Calment, 1875–1997, 122 years (Guinness World Records).