### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

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

### Site Stats

- 177,972 hits

Advertisements

Programming Enigma Puzzles

4 December 2011

Posted by on **From New Scientist #2821, 16th July 2011** [link]

I have been playing some number games with my nephew using five dice. For example, when viewing the dice as shown, we would interpret the number on the front as 23114 and the number on top as 11532.

On one occasion I placed the five dice in a row on a table and commented that the five-figure number on the front was a prime, with all its digits different, and that the five-figure number on the top was a perfect square.

My nephew, who was viewing the row from the other side, said exactly the same was true for him, but that his square was higher than mine.

Which prime and which square could I see?

[enigma1655]

Advertisements

%d bloggers like this:

The following Python code runs in 110ms.

Solution:The prime is 43651, and the square is 12544.