OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..4188
PROG
(PARI) a(n=50, L=[0, 1, 8], show=0)={my(t); for(d=1, 1e9, u=vector(d, i, 10^(d-i))~; forvec(v=vector(d, i, [1+(i==1&!L[1]), #L]), isprime(t=vector(d, i, L[v[i]])*u)|next; isprime(A004086(t))|next; show&print1(t", "); n--|return(t)))}
(Python)
from itertools import product
from sympy import isprime
A199328_list = [n for n in (int(''.join(s)) for s in product('018', repeat=10)) if isprime(n) and isprime(int(str(n)[::-1]))] # Chai Wah Wu, Dec 17 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Nov 05 2011
STATUS
approved