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 𝟣𝟦𝟦 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.

2015-11-08, post № 80

**programming**, **Pygame**, **Python**, #clock, #clockface, #simple, #time

This clock uses a simple clock design with the standard clock face. Red, green and blue represent second, minute and hour.

2015-11-07, post № 79

**mathematics**, **programming**, **Pygame**, **Python**, #%, #black, #mod, #modulo, #red

This program calculates primes, takes their remainder and then places a color accordingly. The shapes are quiet interesting.

## Controls

- ‘Space’ takes a screenshot.

Posts:

243-241, 240-238, 237-235, 234-232, 231-229, 228-226, 225-223, 222-220, 219-217, 216-214, 213-211, 210-208, 207-205, 204-202, 201-199, 198-196, 195-193, 192-190, 189-187, 186-184, 183-181, 180-178, 177-175, 174-172, 171-169, 168-166, 165-163, 162-160, 159-157, 156-154, 153-151, 150-148, 147-145, 144-142, 141-139, 138-136, 135-133, 132-130, 129-127, 126-124, 123-121, 120-118, 117-115, 114-112, 111-109, 108-106, 105-103, 102-100, 99-97, 96-94, 93-91, 90-88, 87-85, 84-82, **81-79**, 78-76, 75-73, 72-70, 69-67, 66-64, 63-61, 60-58, 57-55, 54-52, 51-49, 48-46, 45-43, 42-40, 39-37, 36-34, 33-31, 30-28, 27-25, 24-22, 21-19, 18-16, 15-13, 12-10, 9-7, 6-4, 3-1Jonathan Frech's blog; built 2021/04/16 21:21:49 CEST