Sunday Times Teaser 3265 – Easter Prayer
by Andrew Skidmore
Published Sunday April 20 2025 (link)
Millions of people will today turn their thoughts to those throughout the world whose lives are made miserable by the ravages of war and bitter conflict. I have taken a selection of letters from the alphabet and given each a different single-digit value. In this way the two words that form the title of this teaser represent two six-figure numbers, one of which is a factor of the other.
There are two letters in EASTER PRAYER for which the following is true. If I told you the value of that letter alone, you wouldn’t be able to work out all the others, but if I told you both their values then you could work out all the values.
What is the value of PRAYER?
8 Comments
Leave one →
My initial solution had a more complicated final section which I replaced with the much better one provided by John Z below.
Coding the s2n function on line 6 as:
may result in a slight speed improvement. My ‘longhand’ calculation below is probably faster still, though.
Yes, a bit faster but the direct arithmetic calculation with numeric constants
will I think be much faster.
A cleaner version using permutations instead of nested for loops is in the works.
@John, your len(x[1]) == 2 in line 28 is too restrictive. E.g. adding 2 incorrect
(E, A, S, T, R, P, Y) entries to dLV ([7, 9, 6, 3, 5, 1, 0] and [7, 9, 3, 8, 5, 1, 6])
should not result in only one solution.
Here is a ‘less restrictive’
approach