DEV Community

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

Collapse
 
gmartigny profile image
Guillaume Martigny

I kind of got crazy with this challenge. After a day at refining my solution, I end up with a pretty efficient solution. The script is able to find the 18th perfect number under 14s on my computer.

Since the solution is a bit long and require some explanations, I wrote everything on a gist.
If anyone found a way to reduce computations, I would greatly appreciate.

Collapse
 
peter profile image
Peter Kim Frank

This is incredible. You should consider converting your gist into a DEV article!

Collapse
 
gmartigny profile image
Guillaume Martigny

Yes, I'm so proud of the result. But in the end, this is nothing more than small bits gathered from the Internet. I don't see an article out of this.

If you (or any one else reading this) want to use this resource for an article, feel free to do so. ;)