Sha256: f06395fad6c550ce45a20d91845935d700c28b8d57d683239c536e2097f53a7b
Contents?: true
Size: 286 Bytes
Versions: 17
Compression:
Stored size: 286 Bytes
Contents
Given a number, find the sum of all the multiples of particular numbers up to but not including that number. If we list all the natural numbers up to but not including 20 that are multiples of either 3 or 5, we get 3, 5, 6 and 9, 10, 12, 15, and 18. The sum of these multiples is 78.
Version data entries
17 entries across 17 versions & 1 rubygems