A perfect number finder, in Ruby