Вы попали на английскую версию сайта. Большая часть курсов доступна на русском языке

Perfect numbers Course Challenge: Intro to Programming

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.

Successful completion: 95%

For full access to the challenge you need a professional subscription.

A professional subscription will give you full access to all Hexlet courses, the opportunity to seek help from mentors and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.

Get access
115
courses
892
exercises
2241
hours of theory
3196
tests

Last code review

User Updated at Submissions count
krivtsov 09 Mar 09:41 1