Skip to main content

is_squarefree

Function is_squarefree 

Source
pub fn is_squarefree(n: u64) -> bool
Expand description

Check if n is squarefree: no repeated prime factors.

ยงExamples

use mathverse_core::integer::is_squarefree;

assert!(is_squarefree(30));
assert!(!is_squarefree(18));