Follow

practicing writing math code. this function determines if a number is perfect using a very efficient and simple algorithm git.alexwennerberg.com/misc/tr

· · Web · 1 · 0 · 0

@aw but what about numbers over 33550335? ;)
just kidding I think this is probably the most efficient way to do something like this when you know the limits of the input.

Sign in to participate in the conversation
Merveilles

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.