Proper divisors: Difference between revisions
→{{header|Perl 6}}: Concurrency doesn't really help, simplified, use more efficient ops
(Matlab section) |
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Concurrency doesn't really help, simplified, use more efficient ops) |
||
Line 2,837:
=={{header|Perl 6}}==
{{Works with|rakudo|
<lang perl6>sub propdiv (\x) {
my @l =
(2 .. x.sqrt.floor).map:
}
}
my @candidates;
▲ }
}
say "max =
{{out}}
<pre>1
2
3
4
5
6
7
8
9
10
max = 79, candidates = 15120 18480</pre>
|