Crate primal_estimate

source ·
Expand description

Estimate upper and lower bounds for the n-th prime, and π(n), the number of primes less than or equal to n.

This is designed to be used via the primal crate.

Functions§

  • Gives estimated bounds for pn, the nth prime number, 1-indexed (i.e. p1 = 2, p2 = 3).
  • Returns estimated bounds for π(n), the number of primes less than or equal to n.