### Random Post

### Recent Posts

### Recent Comments

Jim Randell on Enigma 432: Holiday on the… | |

Brian Gladman on Enigma 432: Holiday on the… | |

Jim Randell on Enigma 432: Holiday on the… | |

Brian Gladman on Enigma 432: Holiday on the… | |

Jim Randell on Enigma 432: Holiday on the… |

### Archives

### Categories

- article (11)
- enigma (1,140)
- misc (2)
- project euler (2)
- puzzle (35)
- site news (44)
- tantalizer (37)
- teaser (3)

### Site Stats

- 172,739 hits

The

SubstitutedSum()solver from theenigma.pylibrary can be used to solve this. I added ago()method to the solver that outputs all solutions (that pass an optional filter), which lets you solve problems like this with a one-liner.The following Python program runs in 54ms.

Solution:JONNY = 52331.There are two corresponding sums:

52331 = 48608 + 3723

52331 = 48708 + 3623

L and S are 6 and 7, but it doesn’t matter which way round.