Function num_prime::nt_funcs::prev_prime

source ·
pub fn prev_prime<T: PrimalityBase>(
    target: &T,
    config: Option<PrimalityTestConfig>
) -> Option<T>
where for<'r> &'r T: PrimalityRefBase<T>,
Expand description

Find the first prime number smaller than target. If target is less than 3, then None will be returned.