The compact proof's weighted prime error
primeError sums Λ(n)(1−χK(n))(1/n−1/x) over prime powers n ≤ x in class 1 mod M. It subtracts log(x)/φ(M) and the real value at 1 of a mean of L-function log derivatives.
Prerequisites
- von Mangoldt weights and smoothed prime sums
- Splitting of primes in quadratic fields
- Dirichlet characters