[UVA][DP] 967 - Circular
A - Circular
Problem
A circular prime is a prime
number that remains prime as each leftmost digit (most significant digit), in
turn, is moved to the right hand side. For instance, the number 19937 is a
circular prime, since all numbers ...