Sunday Times Teaser 3296 – Woolly Jumpers
by Colin Vout
Published Sunday November 23 2025 (link)
Having racked my brains all day trying to devise a suitable Teaser, I woke with my mind racing, just after 4am according to my digital clock. I couldn’t get back to sleep, so I decided to try counting sheep. I imagined them to be numbered starting with the figures shown on the clock, then counting upwards. Each sheep jumped through a particular gap in a fence according to the number of prime factors of its number. Repetitions were counted, so that sheep 405 (=3x3x3x3x5) jumped through the fifth gap.
The last thing I remember noticing before eventually falling asleep was that, for the first time, five consecutive sheep had jumped through the same gap.
What was the number of the last of these five sheep?
With a neat prime factor count routine from Frits
Inefficient but interesting (maybe)
is a Heath Robinson-esque way of coding the much faster, more efficient and less interesting
after inserting
in the imports section of the code.
With more information in the printout