OFFSET
1,1
COMMENTS
Sequence has 294 terms < 10^7. If n is in this sequence then prime(n) = abs(3 + 2*Sum_{k=1..n-1} prime(k)*(-1)^k).
LINKS
Eric Weisstein's World of Mathematics, Prime Difference Function
Eric Weisstein's World of Mathematics, Prime Sums
Eric Weisstein's World of Mathematics, Alternating Series
EXAMPLE
MATHEMATICA
S=0; a=0; Do[S=S+((Prime[k+1]-Prime[k])*(-1)^k); If[1-S==0, a++; Print[a, " ", k+1]], {k, 1, 10^7, 1}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Manuel Valdivia, May 07 2007
STATUS
approved