Mathematics

Computing Perfect Numbers in F#

In this (brief) post I’ll quickly look at how we can naively determine if a number is perfect using F#. A perfect number is an integer, whose proper factors sum to (where a proper factor is all the factors of except for itself). Now, a factor of is any integer, , in the set such [...]

Posted in: F#, Mathematics, Number Theory | No Comments »