Random Post
Recent Posts
- BrainTwister #19: Angular arrangements
- Enigma 767: Safety in numbers
- BrainTwister #18: The arithmetical two-step
- Enigma 774: Sting in the tail
- BrainTwister #17: Semi-one numbers
- Enigma 773: Duodecimal
- BrainTwister #16: Order, order!
- Enigma 772: Have you seen the trailer?
- BrainTwister #15: Domino strips
- Enigma 771: Cross the island
Recent Comments
Archives
Categories
- article (11)
- braintwister (19)
- enigma (1,717)
- enigma-book-1982 (70)
- headscratchers-book-2023 (70)
- microteasers-book-1986 (11)
- misc (7)
- project euler (2)
- puzzle (90)
- puzzle# (249)
- site news (83)
- sphinx (4)
- tantalizer (254)
- tantalizer-book-1970 (40)
- teaser (7)
- today (1)
Site Stats
- 347,385 hits
When this puzzle was originally published I solved it in Perl using an exhaustive search, but it took about 30 minutes to run.
Here’s the search recoded in Python, with a couple of modifications to reduce the run time. It finds a number of maximal length solutions in 2.0s (running under PyPy).
It might be faster to assemble the numbers into chains, and then assemble non-intersecting chains into a ring.
Solution: The maximum number of digits in the ring is 64.