Sunday Times Teaser 3172 – Light Show
![]()
by Victor Bryant
Published Sunday July 09 2023 (link)
My bedside clock displays the time and date using eight digits; for example at 9.43am on 28th June the display would be (see image, above).
Each digit in the electronic display lights up some (or all) of seven light segments, the above display lighting up a total of 45 segments.
On one occasion recently the displayed digits were all different and the total number of lit segments was prime. The same was true exactly one day later. Then, just one minute after the second occasion, the number of lit segments was the average of the numbers of lit segments on those two previous occasions.
What was that third display?
6 Comments
Leave one →
I found extracting data from a date string easier than accessing the date fields directly.
Congratulations Guys, A full house this week!
More compact, doesn’t import ‘datetime’ but uses lots of memory