Sha256: ce640e5554ff21642794f9d09c75d5ad8d0b01c9b95254d997fc07874f7779b3
Contents?: true
Size: 313 Bytes
Versions: 39
Compression:
Stored size: 313 Bytes
Contents
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. Write a program that, given a number, can find the sum of the multiples of a given set of numbers, up to but not including that number.
Version data entries
39 entries across 39 versions & 1 rubygems