OFFSET
0,1
EXAMPLE
0.662729784185267965388337694463998...
MATHEMATICA
First[RealDigits[Sum[Prime[n](-2)^-n, {n, 1000}], 10, 85]] (* James C. McMahon, Jan 29 2024 *)
PROG
(Python)
from sympy import prime
from decimal import Decimal, getcontext
getcontext().prec = 100
def f(k):
if k == 1:
return prime(k) * Decimal(-0.5)
return f(k-1) + prime(k) * Decimal(-0.5) ** k
(PARI) suminf(k=1, prime(k)/(-2)^k) \\ Michel Marcus, Jan 25 2024
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Pierluigi Failla, Jan 25 2024
STATUS
approved