7 kyu
Simple Fun #184: LCM from m to n
304 of 582myjinxin2015
Description:
Task
Your task is to find the smallest number which is evenly divided by all numbers between m
and n
(both inclusive).
Example
For m = 1, n = 2
, the output should be 2
.
For m = 2, n = 3
, the output should be 6
.
For m = 3, n = 2
, the output should be 6
too.
For m = 1, n = 10
, the output should be 2520
.
Input/Output
[input]
integerm
1 ≤ m ≤ 25
[input]
integern
1 ≤ n ≤ 25
[output]
an integer
Fundamentals
Similar Kata:
Stats:
Created | Mar 6, 2017 |
Published | Mar 6, 2017 |
Warriors Trained | 1705 |
Total Skips | 64 |
Total Code Submissions | 1998 |
Total Times Completed | 582 |
JavaScript Completions | 162 |
C# Completions | 63 |
PHP Completions | 53 |
Python Completions | 304 |
Ruby Completions | 42 |
C Completions | 18 |
Total Stars | 32 |
% of votes with a positive feedback rating | 92% of 162 |
Total "Very Satisfied" Votes | 140 |
Total "Somewhat Satisfied" Votes | 18 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 6 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |