The head Mathematician at Maths World London has a desk toy made by Karl Lautman called Primer. This fun little device displays prime numbers on a mechanical counter similar to an old car odometer. As it moves you can see and hear it increment to the next prime. He wanted to replicate this device on a larger scale. The main challenge was to find a large mechanical display so we would have lots of noise and motion as it jumped from prime to prime. We settled on a flip dot display (because I found one on eBay) and so the next challenge was to figure out how to talk to this obsurce, 30 years old technology.
A flip dot display is a grid of dots which can flip over. They are painted yellow (or sometimes white) on one side and matt black on the other. To flip them there is a electromagnet underneath each one and each dot is magnetised. So if you flip the polarity of the electromagnet underneath, you flip the dot. Throw in some electronics to manage all the electromagnets (which are just a coil of wire) and you can set the state of each dot to display a message.
These display were popular on buses before LED technology was as prevalent. Buses needed a way to change the displayed destination but only occassionally. This type of display works well for clear high contrast letters that can be changed if needed. If you cut power to the display the message will remain, similar to a modern e-ink display.
These displays are now popular for art exhibits and other installations, so I was able to find others online who had reverse engineered the elctronics. This helped use a microcontroller to start flipping dots. With this, some programming and a few additional electrical components the sign was alive!
To operate the sign there is a button below it which lights up when it is ready to move to the next prime. Press the button and the sign will increment to the next prime, this highlights the randomness of the gaps between each prime number. Once at a prime the computer inside will calculate the next one by checking each number above it until it reaches another.
The sign can display 10 digits. The largest 10 digit prime is 9,999,999,967 which is the 455,052,511th prime (the 455,052,512th prime is 10,000,000,019). If you assume about 5 seconds per prime - it will take just over 72 years to reach the 10 digit limit.
Prime Sign in place at MathsWorld London in 2025!