OFFSET
1,1
LINKS
Felix Fröhlich, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[4500]], Count[FromDigits/@Table[RotateRight[IntegerDigits[#], d], {d, IntegerLength[ #]}], _?PrimeQ]==4&] (* Harvey P. Dale, Aug 31 2024 *)
PROG
(PARI) rot(n) = if(#Str(n)==1, v=vector(1), v=vector(#n-1)); for(i=2, #n, v[i-1]=n[i]); u=vector(#n); for(i=1, #n, u[i]=n[i]); v=concat(v, u[1]); v
eva(n) = subst(Pol(n), x, 10)
is(n) = my(r=rot(digits(n)), i=0); while(r!=digits(n), if(ispseudoprime(eva(r)), i++); r=rot(r)); if(ispseudoprime(eva(r)), i++); if(n==1 || n==11, return(0)); if(i==4, 1, 0)
forprime(p=1, 1e3, if(is(p), print1(p, ", ")))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Felix Fröhlich, May 25 2021
STATUS
approved