Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 813 Bytes

File metadata and controls

32 lines (18 loc) · 813 Bytes

PerfectNumberQ

PerfectNumberQ(n)

returns True if n 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

Examples

>> Select(Range(1000), PerfectNumberQ)
{6,28,496}

Implementation status

  • ☑ - partially implemented

Github