8 kyu
Sum of Multiples
12,346 of 25,514m47r1x
Description:
Your Job
Find the sum of all multiples of n
below m
Keep in Mind
n
andm
are natural numbers (positive integers)m
is excluded from the multiples
Examples
sumMul(2, 9) ==> 2 + 4 + 6 + 8 = 20
sumMul(3, 13) ==> 3 + 6 + 9 + 12 = 30
sumMul(4, 123) ==> 4 + 8 + 12 + = 1860
sumMul(4, -7) ==> "INVALID"
Fundamentals
Similar Kata:
Stats:
Created | Apr 30, 2016 |
Published | Apr 30, 2016 |
Warriors Trained | 41156 |
Total Skips | 1932 |
Total Code Submissions | 122598 |
Total Times Completed | 25514 |
JavaScript Completions | 12346 |
Ruby Completions | 652 |
Python Completions | 9099 |
C# Completions | 1182 |
R Completions | 269 |
Groovy Completions | 77 |
Haskell Completions | 284 |
Java Completions | 2220 |
Scala Completions | 44 |
COBOL Completions | 9 |
Total Stars | 333 |
% of votes with a positive feedback rating | 87% of 3041 |
Total "Very Satisfied" Votes | 2414 |
Total "Somewhat Satisfied" Votes | 466 |
Total "Not Satisfied" Votes | 161 |