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

10 January 2012

Posted by on **From New Scientist #2764, 12th June 2010** [link]

Harry, Tom and I were looking to find a set of three digits (not necessarily all different) such that whichever order one wrote them down in the resultant 3-digit number was a prime.

We each found a different valid example. One of Harry’s digits also appeared in my example, and one of my digits also appeared in Tom’s example.

What were my three digits?

[enigma1599]

Advertisements

%d bloggers like this:

The following Python program runs in 39ms.

Solution:The three digits are 1, 1 and 3.