OFFSET
1,1
COMMENTS
3, 5 and 7 are not included because they are not legal digits in bases 2, 3 and 5.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3)=43 is included because 43 is prime, the previous prime is 41, and 43_41=167 is prime.
MAPLE
R:= NULL: count:= 0:
p:= 11:
while count < 100 do
q:= p; p:= nextprime(p);
L:= convert(p, base, 10);
x:= add(L[i]*q^(i-1), i=1..nops(L));
if isprime(x) then count:= count+1; R:= R, p;
fi
od:
R;
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, Sep 27 2020
STATUS
approved