A circular prime is a prime number with the property that the number generated at each intermediate step when cyclically permuting its (base 10) digits will be prime. (source)
Example: The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.
isCircularPrime
Where to implement
src/isCircularPrime.js
Description (optional)
A circular prime is a prime number with the property that the number generated at each intermediate step when cyclically permuting its (base 10) digits will be prime. (source)
Example: The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.