solution.scm 365 B

123456789101112131415
  1. ;; https://projecteuler.net/problem=35
  2. ;; Circular primes
  3. ;; Problem 35
  4. ;; The number, 197, is called a circular prime because all
  5. ;; rotations of the digits: 197, 971, and 719, are
  6. ;; themselves prime.
  7. ;; There are thirteen such primes below 100: 2, 3, 5, 7, 11,
  8. ;; 13, 17, 31, 37, 71, 73, 79, and 97.
  9. ;; How many circular primes are there below one million?