Project Euler: Problem 58: Spiral Primes