Teaser 3149: Cube route
From The Sunday Times, 29th January 2023 [link]
I have a set of ten cards, each of which has a different digit written on it. All the cards have been used to make a set of prime numbers. After discarding the smallest prime, and without changing the order of any cards, I have placed the remaining primes in order of decreasing size to give a large number. It is possible, without changing the order of any cards, to break this number into a set composed entirely of cubes. Neither set contains a number with more than four digits.
List, in order of decreasing size, my set of prime numbers.
[teaser3149]
Jim Randell 4:31 pm on 27 January 2023 Permalink |
This Python program uses the [[
mcover()
]] (exact multiset cover) routine from the enigma.py library, that I implemented for Enigma 1712 (and also used in Teaser 2690).It runs in 239ms.
Run: [ @replit ]
Solution: [To Be Revealed]
LikeLike