DEV Community

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

Collapse
 
shiling profile image
Shi Ling • Edited

Came to a same thesis and worked out a similar solution. Also ran into the limits at the 9th perfect number. But JavaScript now supports native BigInt (only in Chrome and I believe newer versions of NodeJs though!). Now we just need a way to generate large prime numbers fast to generate perfect numbers. 😉

Collapse
 
gmartigny profile image
Guillaume Martigny

Yeah, I liked that we came with two solution from the same hypothesis.

I'm looking into BigInt (thanks a lot I didn't know !) and it looks promising.

Collapse
 
gmartigny profile image
Guillaume Martigny

Thanks to your input on BigInt, I made a new solution.
Thanks a lot !

Thread Thread
 
shiling profile image
Shi Ling

👏👏👏👏👏👏

I feel a heart is not enough. I'm so happy to see the new version.