Aliquot sequence classifications: Difference between revisions

Content added Content deleted
(→‎{{header|Scala}}: incomplete.)
Line 753: Line 753:


=={{header|Scala}}==
=={{header|Scala}}==
Put [[proper_divisors#Scala]] the full /Proper divisors for big (long) numbers/ section to the beginning:
{{incomplete|Scala|Doesn't show how properDivisors is put in place}}
With [[proper_divisors#Scala]] /Proper divisors for big (long) numbers/ in place:
<lang Scala>def createAliquotSeq(n: Long, step: Int, list: List[Long]): (String, List[Long]) = {
<lang Scala>def createAliquotSeq(n: Long, step: Int, list: List[Long]): (String, List[Long]) = {
val sum = properDivisors(n).sum
val sum = properDivisors(n).sum