Proper divisors: Difference between revisions

Content added Content deleted
Line 6,231: Line 6,231:
{{trans|Raku}}
{{trans|Raku}}
<syntaxhighlight lang="ruby">func propdiv (n) {
<syntaxhighlight lang="ruby">func propdiv (n) {
n.divisors.slice(0, -2)
n.divisors.first(-1)
}
}