Question

Write a function that returns the fifth perfect number?

Login to Submit

Examples

The function must return the fifth perfect number.

The first 4 perfect numbers are

6
28
496
8128

Explanation: The factors of 6 are 1, 2, 3. If we add them 1 + 2 + 3, the result is 6 the number itself.