Skip to content

Latest commit

 

History

History

035

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Circular primes

The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.

There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97.

How many circular primes are there below one million?

Performance

Try it online!

Real time: 11.197 s
User time: 10.954 s
Sys. time: 0.214 s
CPU share: 99.75 %
Exit code: 0