Speeding up permutations generation

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Fri Mar 6 11:27:52 EST 2015


On 03/06/2015 05:14 PM, Gene Heskett wrote:
>
>
> On Friday 06 March 2015 06:22:34 Dave Angel wrote:
>>
>> 30414093201713378043612608166064768844377641568960512000000000000L
>
> What utility output that as an L ?
>

One called the python interactive interpreter used by many people on 
this list (though it is a shame they haven't switched to python3 yet) :)

Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

 >>> from math import factorial
 >>> factorial(50)

30414093201713378043612608166064768844377641568960512000000000000L

Wolfgang





More information about the Python-list mailing list