Function num_prime::nt_funcs::nth_prime_bounds

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

Returns the estimated inclusive bounds (low, high) of the n-th prime. If the result is larger than maximum of T, None will be returned.

§Reference:

Note that some of the results might depend on the Riemann Hypothesis. If you find any prime that doesn’t fall in the bound, then it might be a big discovery!