0

Output the nth Perfect Number
code-golf number math
Challenge
Given an integer, n, as input where 1 <= n <= 2^10, output the nth perfect number.
Perfect Numbers
A perfect number is a number, x where the sum of its factors (excluding itself) equals x. For example, 6:
6: 1, 2, 3, 6
And, of ...