PerfectNumberQ(n)
returns
True
ifn
is a perfect number. In number theory, a perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the sum of its positive divisors excluding the number itself.
See
>> Select(Range(1000), PerfectNumberQ)
{6,28,496}
- ☑ - partially implemented