New Scientist’s Brain Twister 7: Home Primes

<p>This year, New Scientist has embarked on a new series for their puzzle column called the &ldquo;Brain Twister.&rdquo; I believe it will be a fun exercise for me to tackle these puzzles using Python, as I aim to improve my coding skills. The problem that we&rsquo;re gonna solve in this post is &ldquo;<strong>Home Primes</strong>&rdquo;.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*nbUtEKy7Cxf4549u--e3Vg.jpeg" style="height:700px; width:700px" /></p> <p>Image by the author using DALL-E 3.</p> <p>To find the home prime of a number, follow this procedure: first, find its prime factors; then concatenate these by writing the prime factors in size order to form a new number using all of their digits; then repeat until the resulting number is prime.</p> <p><a href="https://medium.com/@shelvia1039/new-scientists-brain-twister-6-home-primes-68acd63b31d3"><strong>Website</strong></a></p>
Tags: Home Primes