🎉 Exercism Research is now launched. Help Exercism, help science and have some fun at research.exercism.io 🎉
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