Track Lua
Lua track

Perfect Numbers

An exercise from the Lua 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.

control flow if else statements
control flow loops
math
View all solutions