### Random Post

### Recent Posts

### Recent Comments

Jim Randell on Enigma 402: A DIY puzzle | |

geoffrounce on Puzzle 71: All wrong, all… | |

Jim Randell on Puzzle 71: All wrong, all… | |

geoffrounce on Enigma 1246: Triangle squ… | |

Hugh Casement on Enigma 1110: Dots and lin… |

### Archives

### Categories

- article (11)
- enigma (1,079)
- misc (2)
- project euler (2)
- puzzle (21)
- site news (42)
- tantalizer (21)
- teaser (3)

### Site Stats

- 157,010 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.