DEV Community

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

Collapse
 
maxart2501 profile image
Massimo Artizzu

You're... not expecting fast implementations, are you? ๐Ÿคจ

Unless you consider scraping a web page to get them. There are just 50 known perfect numbers...

Collapse
 
peter profile image
Peter Kim Frank • Edited

Going beyond the set of currently known perfect numbers is extra credit. But no - any old method will do, fast or slow or limited to just the first few in the list. :)

It will be interesting to see what approach is most efficient for grabbing the first few.