Mensanator:
> Ever tried to iterate 403 septillion times?

The OP is talking about formulas, like:
X + Y * Z = W
Where X, Y, Z, W distinct and in [1, 26], so you have C(26, 4)
combinations that's way less than 26!

>>> binomial(26, 4)
14950

So this can be solved with a xcombinations() generator.

Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to