OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(5) = 19 - 17 - 13 + 11 = 0.
MATHEMATICA
Table[Prime[i+3] - Prime[i+2] - Prime[i+1] + Prime[i], {i, 100}] (* G. C. Greubel, Aug 20 2015 *)
PROG
(PARI) first(m)=vector(m, i, prime(i+3)+prime(i)-prime(i+1)-prime(i+2)) \\ Anders Hellström, Aug 20 2015
(Haskell)
a261470 n = a261470_list !! (n-1)
a261470_list = zipWith (-) (drop 2 a001223_list) a001223_list
-- Reinhard Zumkeller, Aug 22 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Altug Alkan, Aug 20 2015
STATUS
approved