Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A101782
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A101782 Upper bound of twin prime pairs whose digital reverse is prime. +0
1
5, 7, 13, 31, 73, 151, 181, 199, 313, 1021, 1033, 1153, 1231, 1279, 1321, 1429, 1453, 1669, 1723, 1789, 1879, 1933, 3121, 3169, 3301, 3373, 3391, 3463, 3469, 3541, 3583, 3853, 7459, 7561, 7879, 7951, 9001, 9013, 9241, 9421, 9439, 9679, 9721, 9769, 9931 (list; graph; listen)
OFFSET

1,1

EXAMPLE

13 is the upper bound of twin prime pair (11,13) and its digital reverse, 31, is prime.

PROGRAM

(PARI) twurpr(n) = { for(x=1, n, y=twinu(x); z=eval(rev(y)); if(isprime(z), print1(y", ")) ) } twinu(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: A124307 A090610 A141191 this_sequence A018464 A063446 A064600

Adjacent sequences: A101779 A101780 A101781 this_sequence A101783 A101784 A101785

KEYWORD

easy,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