### Random Post

### Recent Posts

### Recent Comments

Jim Randell on Tantalizer 452: Snailspaces | |

Brian Gladman on Enigma 1061: Par is never… | |

Hugh Casement on Enigma 1061: Par is never… | |

Jim Randell on Enigma 1061: Par is never… | |

geoffrounce on Puzzle 47: Digits all wro… |

### Archives

### Categories

- article (11)
- enigma (1,175)
- misc (2)
- project euler (2)
- puzzle (44)
- site news (46)
- tantalizer (48)
- teaser (3)

### Site Stats

- 183,007 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 ]