Möbius function: Difference between revisions
m
Simplify docstring of isqrt
m (Nicer pow) |
m (Simplify docstring of isqrt) |
||
Line 2,224:
/// Computes the integer square root of `n` through Newton's method.
///
/// This is the largest integer `
const fn isqrt(n: u64) -> u64 {
if n <= 1 {
|