practicing writing math code. this function determines if a number is perfect using a very efficient and simple algorithm https://git.alexwennerberg.com/misc/tree/perfect.h
@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.
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.