OFFSET
0,1
REFERENCES
Steven R. Finch, Mathematical Constants, Cambridge University Press, 2003, Section 2.6 Niven's constant, p. 113.
LINKS
Eric Weisstein's MathWorld, Niven's Constant
FORMULA
Equals Sum_(p prime) (zeta(p)-1).
Equals Sum_{k>=2} Sum_{p prime} 1/k^p. - Amiram Eldar, Aug 21 2020
EXAMPLE
0.89289457145126609045700943002242709336...
MATHEMATICA
digits = 100; k0 = 100; dk = 50; $MaxExtraPrecision = 12*digits; z[n_?NumericQ] := Zeta[Prime[n // Floor]]; Clear[s]; s[k_] := s[k] = NSum[z[n] - 1, {n, 1, k}, WorkingPrecision -> digits + 10, NSumTerms -> 10*digits]*(1 + NSum[Zeta[n] - 1, {n, k + 1, Infinity}, WorkingPrecision -> digits + 10]); s[k0] ; s[k = k0 + dk]; While[RealDigits[s[k], 10, digits] != RealDigits[s[k - dk], 10, digits], Print["k = ", k]; k = k + dk]; RealDigits[s[k], 10, digits] // First
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Jean-François Alcover, May 28 2014
STATUS
approved