Teaser 2429: [Easter alphametic]
From The Sunday Times, 12th April 2009 [link]
In this subtraction sum, digits have consistently been replaced by letters, with different letters for different digits.
EASTER − BONNET = TIMES
What number is TEASER?
This puzzle was originally published with no title.
[teaser2429]
Jim Randell 11:39 am on 3 July 2026 Permalink |
By rearranging the sum as an addition sum we can use the [[
SubstitutedExpression.split_sum]] solver from the enigma.py library.The following run file executes in 85ms. (Internal runtime of the generated code is 201µs).
Solution: TEASER = 591792.
LikeLike
Ruud 12:56 pm on 3 July 2026 Permalink |
import peek import istr for e, a, s, t, r, i, m in istr.permutations(range(0, 10), 7): if ( (bonnet := istr(":=easter") - istr(":=times")) > 0 and bonnet[2] == bonnet[3] and (istr("=eastrim") | bonnet[:3]).all_distinct() and bonnet[4:] == (e | t) ): peek(easter, bonnet, times, istr("=teaser"))LikeLike