Problem 58 - spiral primes
Problem 58 - spiral primes

 - memoize the count of prime diagonals for length n
 - count for length n + 2 = count for length n + num primes on outer diagonals
 - both this memoized recusive version and iterative version take ~20 seconds.

mbuhot/mbuhot-euler-solutions,mbuhot/mbuhot-euler-solutions