Sunday Times Teaser 3197 – Three or Four?
by Victor Bryant
Published Friday December 29 2023 (link)
Here are some clues about my PIN:
• It has 3 digits (or it might be 4).
• The first digit is 3 (or it might be 4).
• The last digit is 3 (or it might be 4).
• It is divisible by 3 (or it might be 4).
• It differs from a square by 3 (or it might be 4).
In each of those statements above just one of the guesses is true, and the lower guess is true in 3 cases (or it might be 4).
That should enable you to get down to 3 (or it might be 4) possibilities for my PIN. But, even if you could choose any one of the statements, knowing which guess was correct in that statement would not enable you to determine the PIN.
What is my PIN?
4 Comments
Leave one →
The logic in my code lines 31 — 36 used to determine Victor’s PIN from the 3 (or 4) candidates is flawed and while it may produce the ‘right answer’ this is a coincidence.
Borrowing heavily from Brian’s code lines 32-38