Home >Backend Development >PHP Tutorial >Used for simple algorithm attempts
If the sum of all factors of a positive integer greater than 1 is equal to itself, the number is called a perfect number. For example, 6 and 28 are both perfect numbers: 6=1+2+3; 28=1+2+4+ 7+14.
|