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