hp
toc

JClock VII

2015-11-14, post № 81

programming, Pygame, Python, #clock, #composite, #composite number, #factorization, #prime, #prime factorization, #prime time, #primes

This alternative clock is not really readable by human. It calculates the first 𝟣𝟦𝟦 [1] primes, assigns 𝟨𝟢 of them to every possible second, 𝟨𝟢 to every possible minute and 𝟤𝟦 to every possible hour.
Multiplying those three primes for a given time results in a composite number representing said time. Using integer factorization, you then can get the three primes back, map them to seconds, minutes and hours, and by doing so calculate the time.

jclock-vii.gif
Extra assets: jclock-vii_extra.gif

Footnotes

  1. This number is the sum of 𝟨𝟢 seconds, 𝟨𝟢 minutes and 𝟤𝟦 hours.
Jonathan Frech's blog; built 2024/04/13 20:55:09 CEST