Function num_prime::nt_funcs::prime_pi_est

source ·
pub fn prime_pi_est<T: ToPrimitive + FromPrimitive>(target: &T) -> T
Expand description

Estimate the value of prime π() function by Riemann’s R function. The estimation error is roughly of scale O(sqrt(x)log(x)).

Reference: https://primes.utm.edu/howmany.html#better