diff --git a/build.py b/build.py index 266c1e3..c3001ae 100644 --- a/build.py +++ b/build.py @@ -1,2 +1,19 @@ +def find_lcm(num1,num2): + greater = num1 if num1 > num2 else num2 + + while True: + if (greater % num1 == 0) and (greater % num2 == 0): + lcm = greater + break + greater += 1 + return lcm + def solution(num1, num2, end_num): - """Enter Code Here""" \ No newline at end of file + """Enter Code Here""" + lcm = find_lcm(num1,num2) + check = lcm + l = [] + while(check < end_num): + l.append(check) + check += lcm + return l diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..e208088 Binary files /dev/null and b/build.pyc differ diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000..eee3af4 Binary files /dev/null and b/tests/__init__.pyc differ diff --git a/tests/test_solution.pyc b/tests/test_solution.pyc new file mode 100644 index 0000000..ba48de3 Binary files /dev/null and b/tests/test_solution.pyc differ