OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..2500
EXAMPLE
17 is a lower bound twin prime and the reverse,71, is prime and also a lower bound twin prime.
MATHEMATICA
lbtpQ[n_]:=Module[{rp=FromDigits[Reverse[IntegerDigits[n]]]}, PrimeQ[rp] &&PrimeQ[rp+2]]; Select[Transpose[Select[Partition[Prime[Range[2300]], 2, 1], Last[#]-First[#]==2&]][[1]], lbtpQ] (* Harvey P. Dale, Jan 27 2012 *)
PROG
(PARI) twlrpr2(n) = { for(x=1, n, y=twinl(x); z=eval(rev(y)); if(isprime(z) && isprime(z+2), print1(y", ")) ) } twinl(n) = \The n-th upper twin prime { local(c, x); c=0; x=1; while(c<n, if(isprime(prime(x)+2), c++); x++; ); return(prime(x)) }
rev(str) = \\ Get the reverse of the input string
{ local(tmp, s, j); tmp = Vec(Str(str)); s=""; forstep(j=length(tmp), 1, -1, s=concat(s, tmp[j])); return(s) }
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Jan 26 2005
STATUS
approved