OFFSET
1,1
LINKS
R. Zumkeller, Table of n, a(n) for n = 1..1000
K. Soundararajan, Small gaps between prime numbers: the work of Goldston-Pintz-Yildirim, Bull. Amer. Math. Soc., 44 (2007), 1-18.
FORMULA
a(n) ~ n log n. - Charles R Greathouse IV, Jun 04 2015
MAPLE
d:=6; M:=1000; t0:=[]; for n from 1 to M do p:=ithprime(n); if nextprime(p) - p >= d then t0:=[op(t0), p]; fi; od: t0;
MATHEMATICA
t={}; q=6; Do[If[Prime[n+6]-Prime[n+5]>=q, AppendTo[t, Prime[n+5]]], {n, 1, 200}]; t (* Vladimir Joseph Stephan Orlovsky, Feb 02 2012 *)
Transpose[Select[Partition[Prime[Range[200]], 2, 1], #[[2]]-#[[1]] >= 6&]] [[1]] (* Harvey P. Dale, May 15 2013 *)
PROG
(PARI) is(n)=!isprime(n+2) && !isprime(n+4) && n>2 && isprime(n) \\ Charles R Greathouse IV, Jun 04 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 19 2006
STATUS
approved