### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,367)
- misc (4)
- project euler (2)
- puzzle (90)
- puzzle# (48)
- site news (58)
- tantalizer (94)
- teaser (7)

### Site Stats

- 233,130 hits

Programming Enigma Puzzles

4 December 2011

Posted by on **From New Scientist #2830, 17th September 2011** [link]

My nephew Ignatius has set me a problem. He has written down the digits 0 to 9 in ascending order, and has struck out zero and three other digits. He assigned the remaining six, in ascending order, to the letters P, A, Y, E, R and S, respectively. He then produced the sum shown, translated from six three-digit numbers, and their total.

To what number does PAYERS correspond?

[enigma1664]

%d bloggers like this:

A little observation makes this a very short program.

The following Python code runs in 30ms

Solution:PAYERS = 123689.