OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..2000
EXAMPLE
Primes between 64 = 8^2 and 81 = (8+1)^2: 67, 71, 73 and 79; so 79 - 73 = 6 = a(8).
PROG
(PARI) { for (n=1, 2000, p=nextprime(n^2); q=precprime((n + 1)^2); a=0; r=0; while (r<q, r=nextprime(p+1); g=r-p; p=r; if (g>a, a=g)); write("b063789.txt", n, " ", a) ) } \\ Harry J. Smith, Aug 31 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 17 2001
STATUS
approved