|
Search: id:A101783
|
|
|
| A101783 |
|
Lower bound twin primes such that their digital reverse is prime and a lower bound twin prime. |
|
+0 1
|
|
| 3, 5, 11, 17, 71, 101, 191, 1031, 1301, 7349, 7457, 7547, 7589, 9437, 9857, 10007, 10067, 10301, 10457, 10859, 11057, 11717, 11777, 11939, 12107, 12821, 13931, 14081, 14549, 14591, 16061, 16361, 16829, 17417, 18041, 19541, 19697, 19991
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
EXAMPLE
|
17 is a lower bound twin prime and the reverse,71, is prime and also a lower bound twin prime.
|
|
PROGRAM
|
(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
|
Sequence in context: A147251 A146473 A101781 this_sequence A078883 A109556 A090952
Adjacent sequences: A101780 A101781 A101782 this_sequence A101784 A101785 A101786
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)gmail.com), Jan 26 2005
|
|
|
Search completed in 0.002 seconds
|