Documentation

AnalyticNumberTheory.PrimeDistribution.PrimeNumberTheorem

Prime-distribution API #

This module is the stable facade over the ported PNTAnd implementation.

A medium-strength prime number theorem for Chebyshev's psi function.

The prime-counting PNT in the real-variable normal form proved by PNTAnd.

A natural-number interface for the prime-counting PNT.

Equations
Instances For

    Restrict the real-variable prime-counting PNT to natural arguments.

    theorem AnalyticNumberTheory.PrimeDistribution.primeCounting_upper_bound :
    ∃ (C : ), 0 < C ∀ (x : ), 2 xx.primeCounting C * x / Real.log x

    Upper bound for π: the PNT supplies a constant such that π(x) ≤ C·x/log x uniformly for x ≥ 2. This gives the analytic bound ≤ C·N/(a·log(N/a)) for switchingCount ≤ π(N/a) in the three-factor main-term estimate.