redo as Range#multiples_of and Array#sum