### Random Post

### Recent Posts

### Recent Comments

Hugh Casement on Enigma 1070: Time to work | |

Jim Randell on Enigma 1070: Time to work | |

Jim Randell on Enigma 1070: Time to work | |

geoffrounce on Enigma 440: Three X | |

Jim Randell on Enigma 1588: As easy as 1… |

### Archives

### Categories

- article (11)
- enigma (1,157)
- misc (2)
- project euler (2)
- puzzle (39)
- site news (44)
- tantalizer (42)
- teaser (3)

### Site Stats

- 177,568 hits

Advertisements

This Python program runs in 34ms. It takes a different approach to the problem than the solution I coded up in Perl when the puzzle was originally published and is much faster.

Solution:VALUE = 89140.A simple, short permutation solution, but with a longer run time :

We can use the general Alphametic solver (

SubstitutedExpression()) from theenigma.pylibrary to solve this.Here is the command and it’s output. Overall run time is 71ms.

Or you can put the expressions in a file and just tell

enigma.pyto run it: