Exemplo n.º 1
0
def problem108a():
    recordN = 10**9
    recordSolutions = 0
    for n in genProducts(10**6,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59]):
        n = product(n)
        if n > 10:          
            m = basicSolutions(n)
            #if m >= 1000 and n < recordN:
            if m > recordSolutions:
                print(n,m)
                recordN = n
                recordSolutions = m
Exemplo n.º 2
0
def problem108():
    for n in genProducts(10**6,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59]):
        if numberOfSolutions(product(n)) > 10**3:
            return product(n)
Exemplo n.º 3
0
def problem204():
    count = 1
    for a in genProducts(10 ** 9, primesUpTo(100)):
        count += 1
    print(count)