Weighted prime sums via the prime number theorem #
∑_{a < p ≤ b} p log p = b θ(b) - a θ(a) - ∫_a^b θ (Abel summation), and with θ(x) ~ x
this gives ∑_{K/d < p ≤ K/c} p log p = K² (1/c² - 1/d²)/2 + o(K²).
The weighted prime sum ∑_{a < p ≤ b} p log p (as a sum over integers k with
⌊a⌋₊ < k ≤ ⌊b⌋₊).
Equations
- Zeta5Irrational.wsum a b = ∑ k ∈ Finset.Ioc ⌊a⌋₊ ⌊b⌋₊, ↑k * Zeta5Irrational.cPrime k
Instances For
theorem
Zeta5Irrational.wsum_eq
{a b : ℝ}
(ha : 0 ≤ a)
(hab : a ≤ b)
:
wsum a b = b * Chebyshev.theta b - a * Chebyshev.theta a - ∫ (t : ℝ) in Set.Ioc a b, Chebyshev.theta t
Abel summation for the weighted prime sum.