1
Student
isPerfect.js
Create a function isPerfect()
that accepts a number and returns true
if it's perfect, and false
otherwise.
A perfect number is a positive integer that is equal to the sum of its proper positive divisors excluding the number itself. For example, 6 is perfect, because 6 = 1 + 2 + 3.
- Learn more about perfect numbers
- List of perfect number
For full access to the challenge you need a professional subscription.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.