Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A053319
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A053319 Distance between twin primes. +0
3
2, 6, 6, 12, 12, 18, 12, 30, 6, 30, 12, 30, 12, 6, 30, 12, 30, 12, 30, 36, 72, 12, 30, 60, 48, 30, 18, 24, 18, 150, 12, 6, 30, 24, 138, 12, 18, 12, 30, 60, 78, 48, 12, 12, 18, 108, 24, 30, 6, 120, 12, 48, 30, 24, 66, 84, 6, 54, 18, 48, 30, 54, 6, 24, 18, 12, 96, 30, 42, 30, 42 (list; graph; listen)
OFFSET

1,1

LINKS

M. F. Hasler, Table of n, a(n) for n = 1..107406

MATHEMATICA

PrimeNextTwinAverage[n_]:=Module[{k}, k=n+1; While[ !PrimeQ[k-1]||!PrimeQ[k+1], k++ ]; k]; a=4; lst={}; Do[b=PrimeNextTwinAverage[a]; c=b-a; AppendTo[lst, c]; a=b, {n, 4!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), May 30 2009]

PROGRAM

(PARI) {cnt=0; lp= /*last*/ ltp=/*last twin(upper)*/ 5;

forprime(p=lp+1, default(primelimit), if(p-lp != 2, lp=p; next);

write("b053319.txt", cnt++" "p-ltp); /* print1(p-ltp", "); */ ltp=lp=p)} [M. F. Hasler, May 26 2007]

CROSSREFS

First differences of A001359.

Sequence in context: A087560 A071892 A064797 this_sequence A075779 A140880 A065420

Adjacent sequences: A053316 A053317 A053318 this_sequence A053320 A053321 A053322

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Mar 06 2000

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 December 8 08:31 EST 2009. Contains 170430 sequences.


AT&T Labs Research