You are viewing a single comment's thread. Return to all comments →
With Scala:
val set = (1 to sqrt(n).ceil.toInt).filter(n % _ == 0).toSet set ++ set.map(n / _)
Seems like cookies are disabled on this browser, please enable them to open this website
Common Divisors
You are viewing a single comment's thread. Return to all comments →
With Scala: