### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,393)
- misc (4)
- project euler (2)
- puzzle (90)
- puzzle# (61)
- site news (62)
- tantalizer (105)
- teaser (7)
- today (1)

### Site Stats

- 244,212 hits

Programming Enigma Puzzles

22 July 2019

Posted by on **From New Scientist #1661, 22nd April 1989** [link]

I have two accounts at Midloids bank, both with unusual eight-digit account numbers, which are made up of a combination of only odd digits.

If either of the account numbers is split in half it gives two four-digit prime numbers. These two primes contain the same four digits, but in a different order, and with no digit repeated. Furthermore if these four-digit primes are split in half, they each give two two-digit prime numbers.

If, for both numbers, the prime formed from the first four digits is larger than the prime formed from the second four digits, what are the numbers of my accounts?

[enigma509]

%d bloggers like this:

We can use the [[

`SubstitutedExpression()`

]] solver from theenigma.pylibrary to solve this puzzle.The following run file executes in 149ms.

Run:[ @repl.it ]Solution:The two account numbers are 37191973 and 71591759.