Random Post
Recent Posts
Recent Comments
Archives
Categories
- article (11)
- enigma (1,609)
- enigma-book-1982 (70)
- misc (5)
- project euler (2)
- puzzle (90)
- puzzle# (173)
- site news (76)
- tantalizer (189)
- teaser (7)
- today (1)
Site Stats
- 310,314 hits
Programming Enigma Puzzles
From New Scientist #3391, 18th June 2022 [link] [link]
Emma Neesha is a forgetful sort, and she has just locked herself out of her house with her keys still inside.
Not to worry, she installed keypads on both her house and car for such occasions. Unfortunately, she has also forgotten the four-digit code to her house.
This shouldn’t be a problem, because she keeps a code clue in her wallet. It says: “Four times the car’s four-digit code”.
Well, that is fine, but she has forgotten that one too. Fortunately, Emma is prepared: she has a clue written down for the car’s code as well. Pulling that one out, it reads: “The reverse of the house code”. Oh dear.
Can you help?
[puzzle#172]
See: Tantalizer 324, Teaser 36.
We can use the [[
SubstitutedExpression
]] solver from the enigma.py library to solve this puzzle.Solution: The house code is 8712. The car code is 2178.
There is also a second solution where both codes are 0000. Which is not disallowed by the puzzle text.