It is only one loop needed that steps over all elements of the spiral. Every element
is checked to be a prime. The loop run while the number of found primes is more than
ten times the number of all elements of the spiral.
the side length of the spiral when the number of primes falls below one of ten
of all elements