PrimeZetaP
The prime zeta function , the sum over primes. Computed via the Möbius/ζ identity rather than sieving primes directly — the identity converges geometrically, sieving does not.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
PrimeZetaP✓PrimeZetaP(s), for .Typed signatures
| Type | Package | Applies |
|---|---|---|
(number) -> number | analytic | always |
Details
- Reuses this package's own
Zeta(already extended to complex arguments) rather than a fresh prime-summation kernel; geometrically as grows, so the sum settles in a few dozen terms at double precision. - For the identity is an analytic continuation, and each , , takes Wolfram's branch: the principal logarithm when , and (the functional equation, each piece principal) when . For real both are the principal logarithm, so . For complex the second differs from the first by a multiple of that grows with , and the value is not continuous across the real axis.
- for a squarefree is
ComplexInfinity, as in Wolfram; is finite because . - It declines (stays unevaluated) for , at a zero of and where lies on the logarithm's cut, for below about , and for while .
- Checked against
wolframscript'sN[PrimeZetaP[s], 30]over a grid of real and complex in the strip, matching to 30 digits on the bignum path (where it answers) and to about at doubles. N(x, d)past a double's digits runs the same sum on the BigDecimal kernel, for real and complex , to digits; it declines at an approximated pole, and where the terms (about ) would be too many.
Examples
3 more kept as data, checked against the oraclesScope #
complex with : Wolfram continues through the functional equation, which puts at , off the principal
live ↗InOut
Known value · Wolfram 15.0.0 PrimeZetaP
About
| Examples | 12 |
|---|---|
| Checked against | Wolfram Language 12 agree |
| Crosswalk | Wolfram Language |
Implementation
primitive · kernela kernel — an algorithm over mutable state that would not be readable as a tree
nativeengine
typescriptpackages/symbols/analysis/analytic/src/prime-zeta.ts See also: Zeta