Track Swift
Swift track

Perfect Numbers

An exercise from the Swift 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
integers
math
View all solutions