Track JavaScript (Legacy)
JavaScript (Legacy) track

Perfect Numbers

An exercise from the JavaScript (Legacy) 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.

arrays
control flow conditionals
control flow loops
integers
math
View all solutions