**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]

### Like this:

Like Loading...

*Related*

The following Python code runs in 110ms.

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