Light Mode
Dark Mode
Perfect Number Check mission

Perfect Number Check mission contains ambiguity for N=1.

A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself.

assert is_perfect(1)

Is True or False since 1 is the only proper divisor but must be excluded (excluding itself) ???

Created: Nov. 15, 2023, 3:30 p.m.
Updated: Nov. 15, 2023, 3:30 p.m.
0
40
User avatar
U.V