OFFSET
1,1
COMMENTS
If prime(a(n)) is written in base k, 2<=k<=9, and the k-representation is read in decimal, then it will be a prime only for k=9.
PROG
(PARI) isok(n) = {my(p = prime(n)); for (b = 2, 8, if (isprime(subst(Pol(digits(p, b)), x, 10)), return(0)); ); isprime(subst(Pol(digits(p, 9)), x, 10)); } \\ Michel Marcus, Jan 18 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev and Peter J. C. Moses, Jan 08 2014
STATUS
approved