### 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

The answer on this one depends on how you write the letter Y. For the vast majority of the fonts on my system it consists of 3 line segments, but there are a few fonts (particularly “handwriting” fonts) that only use 2 line segments. But as the example given in the puzzle text (25 = TWENTY-FIVE) has 29 line segments using the 3 line segment version of Y, and only 28 if using the 2 line segment version, my program uses the 3 line segment version.

This Python program runs in 41ms.

Solution:The three numbers are: 59, 20, 20.If the 2 line segment version of Y is used the solution is: 55, 20, 20.

If you like complex expressions and shorter programs you can coalesce lines 49-53 into a single expression.