Sunday, 7 April 2013

C/C++ Program to Print Circular Prime Numbers

   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.The number, 379, is a circular prime because all rotations of the digits: 793, 937, and 379, are themselves prime numbers. The C/C++ Program provided in this Post prints all the Circular Prime numbers less than the given limit.

Figure Below Shows a Sample Output



Click here to download the C++ Program.

2 comments: