complete solution to circular primes