OFFSET
0,1
LINKS
Patrick De Geest, Circular primes
MATHEMATICA
NearCyclPrmsUpTo10powerK[k_]:= Union@Flatten[Table[ParallelMap[If[IntegerDigits[#]== Reverse@IntegerDigits[#] && (Count[FromDigits/@
NestList[RotateLeft, IntegerDigits[#], IntegerLength[#]-1], _?PrimeQ] ==IntegerLength[#]-1), #, Nothing]&, Select[FromDigits/@ Tuples[{1, 2, 3, 5, 7, 8, 9, 0}, n], PrimeQ]], {n, 3, k}], 1]; NearCyclPrmsUpTo10powerK[7] (* Mikk Heidemaa, Apr 26 2017 *)
CROSSREFS
KEYWORD
fini,nonn,base
AUTHOR
EXTENSIONS
Corrected by Jud McCranie, Jan 04 2001
STATUS
approved