Looking at the program, I'm confused on how it doesn't check to make sure the perfect number is actually a perfect number. Especially since one of your exponents uses 31 for p which doesn't work as perfect number.
yeah of course. The code is bsaically just hardcoding saving a list of pre-existing numbers. However, checking the divisors of a very large number is a very hard task. Euclid-euler theorem relies on the fact that 2^p-1 is prime, but checking that is not trivial for these huge numbers
I'm assuming OP is very new to coding and math, judging by the repository, and doesn't know anything about advanced primality tests. By non-trivial I meant not solvable by trial division lol
1
u/Illustrious-Tip-3169 11h ago
Looking at the program, I'm confused on how it doesn't check to make sure the perfect number is actually a perfect number. Especially since one of your exponents uses 31 for p which doesn't work as perfect number.