Skip to content

Commit

Permalink
Merge pull request #157 from abeger/sum-of-multiples-clarify-problem
Browse files Browse the repository at this point in the history
sum-of-multiples: Clarifying problem
  • Loading branch information
kytrinyx committed Dec 7, 2015
2 parents ce7f7c2 + 89308fd commit b47792b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sum-of-multiples.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
If we list all the natural numbers up to but not including 15 that are
multiples of either 3 or 5, we get 3, 5, 6 and 9, 10, and 12.
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 45.
The sum of these multiples is 78.

Write a program that can find the sum of the multiples of a given set of
numbers.
numbers. If no set of numbers is given, default to 3 and 5.

0 comments on commit b47792b

Please sign in to comment.