Track Scala
Scala track

Perfect Numbers

An exercise from the Scala track
easy

About this exercise

Determine if a number is perfect, abundant, or deficient based on Nicomachus' (60 - 120 CE) classification scheme for natural numbers.

discriminated unions
enumerations
integers
math
View all solutions