### Random Post

### Recent Posts

### Recent Comments

Jim Randell on Enigma 423: Four teams, more… | |

Jim Randell on Puzzle 61: A division sum | |

geoffrounce on Enigma 1457: Anglo-Italian… | |

Brian Gladman on Enigma 1088: That’s torn… | |

Hugh Casement on Enigma 1088: That’s torn… |

### Archives

### Categories

- article (11)
- enigma (1,122)
- misc (2)
- project euler (2)
- puzzle (31)
- site news (43)
- tantalizer (31)
- teaser (3)

### Site Stats

- 167,977 hits

Here’s my original Perl code. It’s pretty straightforward and runs in 11ms.

Solution:The lower number is 109989.If you leave the program to run to completion (by removing the

laststatement), you also find that 219978 is the other possible answer.And here’s the same thing in Python. It runs in 51ms.