Sha256: 21ecf64b01c89a74aaa052c233b3f30c5fb5a6d23d1255e13569e2691a44e28c
Contents?: true
Size: 1.22 KB
Versions: 75
Compression:
Stored size: 1.22 KB
Contents
# Sum Of Multiples Given a number, find the sum of all the unique multiples of particular numbers up to but not including that number. If we list all the natural numbers below 20 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12, 15, and 18. The sum of these multiples is 78. ## Setup There are two different methods of getting set up to run the tests with Objective-C: - Create an Xcode project with a test target which will run the tests. - Use the ruby gem `objc` as a test runner utility. Both are described in more detail here: http://exercism.io/languages/objective-c ### Submitting Exercises When submitting an exercise, make sure your solution file is in the same directory as the test code. The submit command will look something like: ```shell exercism submit <path-to-exercism-workspace>/objective-c/sum-of-multiples/SumOfMultiples.m ``` You can find the Exercism workspace by running `exercism debug` and looking for the line beginning with Workspace. ## Source A variation on Problem 1 at Project Euler [http://projecteuler.net/problem=1](http://projecteuler.net/problem=1) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
75 entries across 75 versions & 1 rubygems