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

2 June 2013

Posted by on **From New Scientist #2586, 13th January 2007**

In the following statements and questions each digit has consistently been replaced by a capital letter, with different letters used for different digits.

ONE, FOUR and NINE are perfect squares.

Also, more than one of the following statements is true:

EIGHT is even;

EIGHT + 1 is a perfect square;

EIGHT + ONE is a perfect square;

EIGHT – 1 is a prime;

EIGHT – ONE is a prime;

EIGHT + 7 is the product of two primes;

EIGHTEEN is divisible by 3;

EIGHTEEN is divisible by THREE;

EIGHTEEN – 2 is a perfect square.What is the RIGHT number?

[enigma1425]

Advertisements

%d bloggers like this:

This Python program solves the puzzle in 119ms. When the puzzle was published I originally solved it with a much messier (but faster) Perl script.

Solution:RIGHT = 45798.