### Random Post

### Recent Posts

### Recent Comments

Jim Randell on Enigma 544a: Merry Christ… | |

Jim Randell on Puzzle #52: Bus change | |

J. Pijnenburg on Puzzle #52: Bus change | |

Jim Randell on Puzzle #53: Painting by n… | |

GeoffR on Puzzle #52: Bus change |

### Archives

### Categories

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

### Site Stats

- 233,054 hits

Originally I searched the squares and matched up the letters, which may be a bit faster (it ran in 35ms), but my normal way of using

`itertools.permutations()`

results in a more compact program, and it runs in 36ms.Solution:The value of the square root is 1240092.Using the general alphametic solver from the

enigma.pylibrary means you don’t have to write a program at all:It runs in 76ms, and gives us the assignment of letters to digits, then a simple calculation gives the solution.