Aliquot sequence classifications: Difference between revisions
Content added Content deleted
(→{{header|Scala}}: incomplete.) |
|||
Line 753: | Line 753: | ||
=={{header|Scala}}== |
=={{header|Scala}}== |
||
⚫ | |||
{{incomplete|Scala|Doesn't show how properDivisors is put 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 |