summaryrefslogtreecommitdiff
path: root/005.py
blob: 8929956709c14f27cbb836c5d5e380b77428ed0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
divisors = [11, 12, 13, 14, 15, 16, 17, 18, 19] # only need to check those divisors

def divisible(number):
	result = True
	for i in divisors:
		if number % i != 0:
			result = False
			break
	return result

number = 20

while(True):
	if divisible(number):
		break
	number += 20

print number