Friday, December 17, 2010

Project Euler - Python - Problem 5

This took a long time to compute (brute force!) - I will revisit this later to make it more efficient.

for i in range(99999999, 999999999):
    flag = True
    for x in range(11, 20):
        if i%x>0:
            flag = False
            break
    if (flag == False):
        continue
    else:
        print(i)
        break


No comments: