updated rosettacode.org/wiki/Perfect_numbers#FunL task