### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

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

### Site Stats

- 168,355 hits

Programming Enigma Puzzles

22 February 2012

Posted by on **From New Scientist #2725, 12th September 2009** [link]

I chose two four-digit perfect squares (with no leading zero) that contained eight different digits. So did Harry, and so did Tom.

Our six chosen squares were all different, but the two digits that were unused were the same for all three of us. If you knew what those two digits were you would be able to deduce with certainty what the six squares that we chose were.

What were the largest and smallest of our six squares?

[enigma1562]

Advertisements

%d bloggers like this:

The following Python program runs in 40ms.

Solution:The largest square is 8649. The smallest square is 2809.