Skip to content

Commit

Permalink
n -> x
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 12, 2023
1 parent 115781e commit d498139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ pub const fn are_prime<const N: usize>() -> [bool; N] {
/// Returns the value of the [Möbius function](https://en.wikipedia.org/wiki/M%C3%B6bius_function).
///
/// This function is
/// - 1 if `n` is a square-free integer with an even number of prime factors,
/// - -1 if `n` is a square-free integer with an odd number of prime factors,
/// - 0 if `n` has a squared prime factor.
/// - 1 if `x` is a square-free integer with an even number of prime factors,
/// - -1 if `x` is a square-free integer with an odd number of prime factors,
/// - 0 if `x` has a squared prime factor.
///
/// Uses a small wheel to check prime factors up to `√n` and exits early if
/// Uses a small wheel to check prime factors up to `√x` and exits early if
/// there is a squared factor.
///
/// # Example
Expand Down

0 comments on commit d498139

Please sign in to comment.