Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A101781
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A101781 Lower bound of twin primes pairs whose digital reverse is also prime. +0
1
3, 5, 11, 17, 71, 101, 107, 149, 179, 191, 311, 347, 1031, 1061, 1091, 1151, 1229, 1301, 1487, 1619, 1949, 3251, 3257, 3299, 3359, 3371, 3389, 3467, 3527, 3767, 3821, 3851, 3917, 3929, 7349, 7457, 7547, 7589, 7757, 7949, 9011, 9041, 9341, 9437, 9857, 10007 (list; graph; listen)
OFFSET

1,1

EXAMPLE

17 is the lower bound of twin prime pair (17,19) and its digital reverse, 71, is prime.

PROGRAM

(PARI) twlrpr(n) = { for(x=1, n, y=twinl(x); z=eval(rev(y)); if(isprime(z), print1(y", ")) ) } twinl(n) = \The n-th lower twin prime { local(c, x); c=0; x=1; while(c<n, if(isprime(prime(x)+2), c++); x++; ); return(prime(x-1)) } 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: A019386 A147251 A146473 this_sequence A101783 A078883 A109556

Adjacent sequences: A101778 A101779 A101780 this_sequence A101782 A101783 A101784

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Jan 26 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 30 22:12 EST 2008. Contains 150989 sequences.


AT&T Labs Research