Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089628
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089628 Smallest member of a pair of consecutive twin prime pairs that have no primes between them. +0
1
3, 5, 11, 101, 137, 179, 191, 419, 809, 821, 1019, 1049, 1481, 1871, 1931, 2081, 2111, 2969, 3251, 3359, 3371, 3461, 4217, 4229, 4259, 5009, 5651, 5867, 6689, 6761, 6779, 6947, 7331, 7547, 8219, 8969, 9419, 9431, 9437, 10007, 11057, 11159, 11699, 12239 (list; graph; listen)
OFFSET

3,1

COMMENT

Run the pari script savetwins(100000) or so to build the twinprime array of lower bounds before you run the main script.

Except for first term, same as A053778. - David Wasserman (wasserma(AT)spawar.navy.mil), Feb 22 2006

EXAMPLE

Twin prime pairs 5,7 and 11,13 contain only the composite numbers 6,7,8,9,10

between them. So 5 is in the table. 11,13 and 17,19 have no primes between.

11 is in the table. 41,43 and 59,61 have primes 47 and 53 between then so 41

is not listed.

PROGRAM

(PARI) \save as twinpr.gp pbetweentw(n) = { forstep(x1=1, n, 2, c=0; t1 = twin[x1]; t2 = twin[x1+2]; for(y=t1+3, t2-1, if(isprime(y), c++) ); if(c==0, print1(t1", ")) ) } savetwins(n) = build a table of twin prime lower bounds { twin = vector(n); c=1; forprime(x=3, n, if(isprime(x+2), twin[c]=x; c++; ) ) }

CROSSREFS

Sequence in context: A089070 A068157 A062530 this_sequence A083841 A154941 A062601

Adjacent sequences: A089625 A089626 A089627 this_sequence A089629 A089630 A089631

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Jan 01 2004

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 25 14:49 EST 2009. Contains 167514 sequences.


AT&T Labs Research