Skip to main content

is_smooth

Function is_smooth 

Source
pub fn is_smooth(n: u64, bound: u64) -> bool
Expand description

Check if n is a smooth number: all prime factors <= bound.

ยงExamples

use mathverse_core::integer::is_smooth;

assert!(is_smooth(12, 3));
assert!(!is_smooth(12, 2));