diff --git a/ASSIGNMENTS/Circular primes.md b/ASSIGNMENTS/Circular primes.md new file mode 100644 index 00000000..f64b2311 --- /dev/null +++ b/ASSIGNMENTS/Circular primes.md @@ -0,0 +1,28 @@ +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. Sum of which is 446. + +Find the sum of circular primes that are below N? + + Rotations can exceed N + +#### Input Format + +Input contains an integer N. + +#### Output Format + +Print the required answer. + +#### CONSTRAINTS +10≤ N ≤ 10^6 + +#### Sample Input +``` +100 +``` + +#### Sample Output +``` +446 +```