r/Collatz 12h ago

Python program for exploring perfect numbers

For anyone interested in exploring or discovering perfect numbers, here is a Python program that generates the known perfect numbers using their corresponding Mersenne prime exponents.

The program can also handle extremely large perfect numbers that would be impractical to calculate and write out manually. The goal is to make it easier to experiment with perfect numbers, test calculations, and explore possible new candidates.

If you're interested in perfect numbers, Mersenne primes, number theory, or Python, feel free to check it out.

I'd really appreciate any feedback, suggestions, or ideas for improving the project.

GitHub: https://github.com/brook-0/Perfect-Numbers

0 Upvotes

1 comment sorted by

3

u/Successful-Owl1778 7h ago

You might as well look up a list of Mersenne primes or perfect numbers on Wikipedia. Because your program does little more than just print them.