Skip to content

Commit

Permalink
Add information about the fast_test feature to the docstring of is_prime
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Jan 2, 2025
1 parent 384264c commit 68598a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use crate::integer_math::{mod_mul, mod_pow};
/// Does trial division with a small wheel up to `log2(n)` and then uses a
/// deterministic Miller-Rabin primality test.
///
/// If the `fast_test` feature is enabled this function calls the [`machine_prime::is_prime`] function with the `lucas` feature instead.
///
/// # Example
///
/// Basic usage:
Expand Down

0 comments on commit 68598a4

Please sign in to comment.