DEV Community

Discussion on: Write a script to find "Perfect Numbers"

Collapse
 
kspeakman profile image
Kasey Speakman • Edited

Another interesting observation. In the binary form of each perfect number, the count of leading 1s is a prime number. In fact, they are all Mersenne Exponents.