|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/python
import sys;
def isEvenlyDivisible(num, start, end):
for i in range (start, end+1):
if(num % i):
return False;
return True;
start = int(sys.argv[1]);
end = int(sys.argv[2]);
i = end;
while(True):
if(isEvenlyDivisible(i,start,end)):
break;
i += 1;
print "Result is: " + str(i);
|