Sha256: 9978c26e93919a7b9999af8acf39b8bd0906ca3ef5112e7b710de9829a23fc88
Contents?: true
Size: 259 Bytes
Versions: 45
Compression:
Stored size: 259 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 can find the sum of the multiples of a given set of numbers.
Version data entries
45 entries across 45 versions & 1 rubygems