programming-team-code / programming_team_code_rust

rustaceans
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

Prime sieve divs #78

Closed lrvideckis closed 1 month ago

lrvideckis commented 1 month ago

So I initially tried to implement divisors recursively, but ran into a compiler bug related to https://stackoverflow.com/q/74113005 So iteratively is the only way I can think of to implement this; returning vec of all divisors.

So I reverted https://github.com/programming-team-code/programming_team_code_rust/pull/75 for consistency