Spiral primes

c++