I have some code to count permutations and combinations, and I\'m trying to make it work better for large numbers.
I\'ve found a better algorithm for permutations th
If you don't need a pure-python solution, gmpy2 might help (gmpy2.comb is very fast).
gmpy2.comb