OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MAPLE
seq(ithprime(n+6)-ithprime(n), n=1..70);
MATHEMATICA
a=6; t=Array[Prime, 123]; Drop[t, a]-Drop[t, -a] (* Vladimir Joseph Stephan Orlovsky, Aug 13 2009 *)
Last[#]-First[#]&/@Partition[Prime[Range[80]], 7, 1] (* Harvey P. Dale, Jan 12 2012 *)
PROG
(Magma) [NthPrime(n+6)-NthPrime(n): n in [1..100] ]; // Vincenzo Librandi, Apr 23 2011
(Haskell)
a031168 n = a031168_list !! (n-1)
a031168_list = zipWith (-) (drop 6 a000040_list) a000040_list
-- Reinhard Zumkeller, Aug 23 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset changed from 2 to 1, and a(1)=15 added, by Vincenzo Librandi, Apr 23 2011
STATUS
approved