'''
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
'''


def findDivisibles(num):
    checkList = [11, 13, 14, 16, 17, 18, 19, 20]
    divisibles = [x for x in checkList if num % x == 0]
    return len(divisibles)


startNum = 2520
endNum = 1000000000

for num in range(startNum, endNum, 2520):
    if findDivisibles(num) == 8:
        print(num)
        break

4122cf0f9d15c098ade34f0690febf4dd0197520
<mask token>

<mask token>


def findDivisibles(num):
    checkList = [11, 13, 14, 16, 17, 18, 19, 20]
    divisibles = [x for x in checkList if num % x == 0]
    return len(divisibles)


<mask token>

<mask token>


def findDivisibles(num):
    checkList = [11, 13, 14, 16, 17, 18, 19, 20]
    divisibles = [x for x in checkList if num % x == 0]
    return len(divisibles)


<mask token>
for num in range(startNum, endNum, 2520):
    if findDivisibles(num) == 8:
        print(num)
        break

<mask token>


def findDivisibles(num):
    checkList = [11, 13, 14, 16, 17, 18, 19, 20]
    divisibles = [x for x in checkList if num % x == 0]
    return len(divisibles)


startNum = 2520
endNum = 1000000000
for num in range(startNum, endNum, 2520):
    if findDivisibles(num) == 8:
        print(num)
        break

'''
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
'''


def findDivisibles(num):
    checkList = [11, 13, 14, 16, 17, 18, 19, 20]
    divisibles = [x for x in checkList if num % x == 0]
    return len(divisibles)


startNum = 2520
endNum = 1000000000

for num in range(startNum, endNum, 2520):
    if findDivisibles(num) == 8:
        print(num)
        break
