We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
1)Miller Rabin is god
2) Rest can be done using generalising the corner terms in spiral and using a while loop for increasing side by 2 till the req result in achieved.
3) I also searched for any hints in ulam spiral, for any pattern, but couldn't find any.
Project Euler #58: Spiral primes
You are viewing a single comment's thread. Return to all comments →
1)Miller Rabin is god
2) Rest can be done using generalising the corner terms in spiral and using a while loop for increasing side by 2 till the req result in achieved.
3) I also searched for any hints in ulam spiral, for any pattern, but couldn't find any.