Exemplo n.º 1
0
def compute():
    target = 5000
    values = list(prime_sieve(target))
    i = 2
    while ways_to_sum(i, values) <= target:
        i += 1
    return i
Exemplo n.º 2
0
def compute():
    return ways_to_sum(100, range(1, 101)) - 1
Exemplo n.º 3
0
def compute():
    return ways_to_sum(200,[1,2,5,10,20,50,100,200])