Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A063790
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A063790 Smallest prime gap between n^2 and (n + 1)^2. +0
1
1, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 6, 4, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 (list; graph; listen)
OFFSET

1,2

COMMENT

a(n)=2 indicates at least one twin prime.

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,2000

EXAMPLE

Primes between 81=9^2 and 100=(9+1)^2: 83, 89 and 97; so 89-83=6=a(9)

PROGRAM

(PARI) { for (n=1, 2000, p=nextprime(n^2); q=precprime((n + 1)^2); a=q-p; r=0; while (r<q, r=nextprime(p+1); g=r-p; p=r; if (g<a, a=g)); write("b063790.txt", n, " ", a) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Aug 31 2009]

CROSSREFS

Sequence in context: A166594 A105267 A008838 this_sequence A109913 A048052 A024708

Adjacent sequences: A063787 A063788 A063789 this_sequence A063791 A063792 A063793

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Aug 17 2001

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 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research