A perfect number is a positive integer that is equal to the sum of its proper divisors (divisors excluding the number itself). These rare numbers, like 6 and 28, are intimately tied to Mersenne primes and have fascinated mathematicians for millennia.