3 lines
79 B
Text
3 lines
79 B
Text
fn factor(n: i32) -> Vec<i32> {
|
|
(1..=n).filter(|i| n % i == 0).collect()
|
|
}
|