### Random Post

### Recent Posts

### Recent Comments

Jim Randell on Enigma 1691: Factory part… | |

Jim Randell on Puzzle 52: Football on the Isl… | |

geoffrounce on Enigma 1691: Factory part… | |

Hugh Casement on Enigma 1070: Time to work | |

Jim Randell on Enigma 1070: Time to work |

### Archives

### Categories

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

### Site Stats

- 177,808 hits

Advertisements

I found this quite a fun puzzle to solve programatically.

This Python code makes heavy use of Python’s generator construct (

`yield ...`

) and also uses the`yield from ...`

generator delegation construct, introduced in Python 3.3, so it won’t work in Python 2.7 (although in this case you could just replace the`yield from`

withexpression`for x in`

and it would work). It runs in 2.3s.expression: yield xSolution:The two completed grids are: