@@ -0,0 +1,224 @@
+import utils%0A%0Aprimes = set(utils.primes(10**6))%0A%0Adef rotations(n):%0A    sn = str(n)%0A    return set(%5B int(sn%5Bi:%5D + sn%5B:i%5D) for i in range(len(sn)) %5D)%0A%0Aprint len(filter(lambda n: rotations(n).issubset(primes), primes.copy())) %0A

add 35