Six is the first number that sums its own parts: 6 = 1 + 2 + 3. Twenty-eight does the same with more pieces: 28 = 1 + 2 + 4 + 7 + 14. Numbers with that lucky equality are perfect - and they are staggeringly rare. The known ones run 6, 28, 496, 8128, 33550336, 8589869056... every one even, every one of the Euclid-Euler form 2^(p-1) times a Mersenne prime 2^p - 1, and every one exact, because sigma is computed from prime factors, never estimated.
Perfect Number Test factorizes any value up to a trillion by trial division, computes sigma(n) as the product (p^(e+1) - 1)/(p - 1), and reports one of three verdicts - perfect, abundant or deficient - with the full arithmetic: factorization, sigma, proper-divisor sum and, for perfect inputs, the matched Mersenne exponent. Batches of 10,000 run in one pass, all in the browser.