Factors_of_an_integer.md 149 B

Factors of an integer

sub factors (Int $n) { (1..$n).grep($n %% *) }