OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 3023 is a term because 3023 = 17*167+17+167 and 3023, 17 and 167 are emirps.
MAPLE
revdigs:= proc(n) local L, i; L:= convert(n, base, 10); add(L[-i]*10^(i-1), i=1..nops(L)) end proc:
isemirp:= proc(p) local r;
if not isprime(p) then return false fi;
r:= revdigs(p);
r <> p and isprime(r)
end proc:
E:= select(isemirp, [seq(ithprime(i), i=1..10^4)]):
nE:= nops(E): N:= E[1]*E[-1]+E[1]+E[-1]:
S:= {}:
for i from 1 to nE do
for j from i+1 to nE do
x:= E[i]*(E[j]+1)+E[j];
if x > N then break fi;
if isemirp(x) then S:= S union {x} fi;
od od:
sort(convert(S, list));
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, Apr 17 2022
STATUS
approved