OFFSET
1,1
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..125
PROG
(PARI) isok(n) = {if (isprime(n), vd = vecsort(digits(n), , 8); for (i=1, #vd, if (!isprime(vd[i]), return (0))); return (1); ); }
a(n) = {sp = 2*(10^prime(n)-1)/9+1; while (!isok(sp), sp = nextprime(sp+2)); sp; } \\ Michel Marcus, May 07 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Pierre CAMI, May 06 2016
EXTENSIONS
a(3) corrected by Michel Marcus, May 07 2016
STATUS
approved