summaryrefslogtreecommitdiff
path: root/go/sum-of-multiples/README.md
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-08-26 14:44:10 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-08-26 14:44:10 +0200
commitacbc22c498a5e58b810f6a3838fa85e597b7f4d9 (patch)
tree1e543f56ad4e63a0df55a5ea269b41720bb0f287 /go/sum-of-multiples/README.md
parentf47002f53090869eb8a0d725b7770959a3af30db (diff)
Solve sum of multiples
Diffstat (limited to 'go/sum-of-multiples/README.md')
-rw-r--r--go/sum-of-multiples/README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/go/sum-of-multiples/README.md b/go/sum-of-multiples/README.md
new file mode 100644
index 0000000..621777b
--- /dev/null
+++ b/go/sum-of-multiples/README.md
@@ -0,0 +1,29 @@
+# Sum Of Multiples
+
+Write a program that, given a number, can 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.
+
+Write a program that can find the sum of the multiples of a given set of
+numbers.
+
+To run the tests simply run the command `go test` in the exercise directory.
+
+If the test suite contains benchmarks, you can run these with the `-bench`
+flag:
+
+ go test -bench .
+
+For more detailed info about the Go track see the [help
+page](http://exercism.io/languages/go).
+
+## Source
+
+A variation on Problem 1 at Project Euler [http://projecteuler.net/problem=1](http://projecteuler.net/problem=1)
+
+## Submitting Incomplete Problems
+It's possible to submit an incomplete solution so you can see how others have completed the exercise.
+