### Random Post

### Recent Posts

### Recent Comments

Hugh Casement on Enigma 1049: Know-all | |

Jim Randell on Enigma 1049: Know-all | |

Jim Randell on Enigma 460: Tear me off a… | |

Jim Randell on Puzzle 42: Football – fo… | |

Jim Randell on Enigma 1050: Find the lin… |

### Archives

### Categories

- article (11)
- enigma (1,199)
- misc (3)
- project euler (2)
- puzzle (50)
- site news (47)
- tantalizer (52)
- teaser (3)

### Site Stats

- 188,171 hits

Advertisements

We’ve solved many puzzles in a similar vein to this one before. (See:

Enigma 405,Enigma 284,Enigma 197,Enigma 29,Puzzle 76).Here I’ve adapted my

MiniZincsolution toEnigma 197to solve this problem. This program uses theminizinc.pywrapper library. With the [[mzn-g12fd -a]] solver it runs in 442 ms.Solution:The correct numerical sum is: 944277 + 9148467 = 10092744.The corresponding alphametic sum is: PHHYBB + PLHXHAB = LRRPYBHH.

The incorrect letter is the units digit of the result. It is given as P, when it should be H.

Another approach is to use the

SubstitutedSum()solver from theenigma.pylibrary.Here is a general solver for this type of problem. This program runs in 773 ms.

Run:[ @repl.it ]