cipher.ink Write a message

Primes

Check a number, watch a sieve, wind an Ulam spiral, and find out why every public-key cipher needs primes.

Primes are the quiet engine of public-key cryptography, and a good deal of fun besides. Everything interactive here uses exact big-integer arithmetic in your browser. Start with the prime of the day, or with the checker.

The prime of the day

Every date has its own prime, picked by a fixed rule from a rotating list of kinds. It's the same for everyone on the same date, and your browser works it out on the spot.

Worked out in your browser from the date alone, so everyone sees the same prime on the same day.

Prime numbers