Sunday Times Teaser 3314 – Number Unobtainable!
by Stephen Hogg
Published Sunday March 29 2026 (link)
Dyall recalls six-digit phone numbers as a sequence of two three-figure values. His wife, Belle, recalls them as a sequence of three two-figure values. Their courting-days’ phone numbers had no zeroes. For each of their numbers, Dyall recalled that the two three-figure values in order made a descending set of primes, while Belle recalled that the three two-figure values in order made a descending set of primes. Back then their town’s residential numbers never began with “7”, “8” or “9”. Dyall told Tim these things, but not the numbers. He then stated that choosing a digit at random to be told its value would give a one in three chance of Tim being able to work out Dyall’s old phone number with certainty. In Belle’s case the chance was greater still.
Give Belle’s old phone number.
Hi John,
Your line 30 is ingenious but I am not sure that is the best approach for readability (although your comment gives a good clue!).
I think I would have parsed it in this way: to make the python code easier to follow
Hi Brian,
Lines 26 – 30 could also be replaced by the following which avoids zipping and zipping back by using a more ‘manual’ approach to counting repeat digits: