Project 3

A perfect number is a number where the sum of all the divisors is equal to two times the number. For example.
The divisors of the number 6 are 1, 2 , 3 and 6. 2 times 6 is 12.
2 * 6 = 1 + 2 + 3 + 6
Write a Java script program which will output the first nine perfect numbers.