[Home](https://riemannhypothesissolved.com/) / [Learning path](https://riemannhypothesissolved.com/learn/) / The compact proof's weighted prime error

# The compact proof's weighted prime error

Graduate · AI-drafted reading guide

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](https://riemannhypothesissolved.com/learn/chebyshev-functions/)
- [Splitting of primes in quadratic fields](https://riemannhypothesissolved.com/learn/splitting/)
- [Dirichlet characters](https://riemannhypothesissolved.com/learn/characters/)

## Where it’s used in the compact proof

- [Theorem A · Short forms](https://riemannhypothesissolved.com/learn/#compact-short)
- [Comparison and analytic endgame](https://riemannhypothesissolved.com/learn/#compact-analytic)

## Lean locations

- [`src/New/Endgame/PrimeError.lean`](https://github.com/lsernau/grh-lean/blob/72fead102f663d5c7a407964a13dc0cf9d977207/grh-compact/src/New/Endgame/PrimeError.lean) · Lean source

## Sources and further reading

Checked sources were opened and cover this concept, Background sources cover the general topic, and Lean source links point to pinned Lean or Mathlib files.

- [Elkies, analytic number theory lecture index](https://people.math.harvard.edu/~elkies/M229.26/index.html) · Background

---

The compact proof's weighted prime error. Web page: https://riemannhypothesissolved.com/learn/prime-error/ · updated 2026-11-27 · site map for machines: https://riemannhypothesissolved.com/llms.txt
