OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
edpQ[n_]:=Module[{idn=IntegerDigits[n]}, PrimeQ[10idn[[1]]+idn[[-1]]]]; Join[ {2, 3, 5, 7}, Select[Prime[Range[200]], edpQ]] (* Harvey P. Dale, Nov 20 2020 *)
PROG
(PARI) {exdigs(n)=local(a, j, d); d=divrem(n, 10); a=d[2]; n=d[1]; j=1; while(n>10, d=divrem(n, 10); n=d[1]; j=10*j); 10*n+a} forprime(p=1, 335, if(isprime(exdigs(p)), print1(p, ", ")))
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 05 2002
EXTENSIONS
Edited and extended by Klaus Brockhaus, Nov 06 2002
STATUS
approved