Möbius function: Difference between revisions

m
Shorten docstring of isqrt
m (Simplify docstring of isqrt)
m (Shorten docstring of isqrt)
Line 2,222:
}
 
/// ComputesReturns the largest integer squaresmaller rootthan ofor `n`equal throughto Newton's method.`√n`
///
/// This is the largest integer `x` such that `x^2 <= n`.
const fn isqrt(n: u64) -> u64 {
if n <= 1 {
19

edits