def comb2(n, k):
    return factorial(n) / factorial(k) / factorial(n - k)

def test():
    result = 0
for n in range(1, 101):
    for k in range(1, n + 1):
        if comb(n, k) > 1000000:
            result += 1

def test2():
    result = 0
for n in range(1, 101):
    for k in range(1, n + 1):
        pass
calculating the number of k-combinations with and without SciPy