diff --git a/005.py b/005.py new file mode 100644 index 0000000..f4674a4 --- /dev/null +++ b/005.py @@ -0,0 +1,12 @@ +def divisible(n): + i = 0 + while True: + i = i + 1 + x = n * i + for ii in range(n, 0, -1): + if x % ii != 0: + break + if ii == 1: + return x + +print 'Smallest number: ', divisible(20)