chain divisor perfect number. slow but correct