ruby: raindrops: reduce over set of factors to check