Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87036

Re: Speeding up permutations generation

From Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
Subject Re: Speeding up permutations generation
Date 2015-03-06 17:27 +0100
References <CADgpKWb=q2=YEJSS1yRkgzF37nO5BNRnywm+zhcwF-MAOr6MdA@mail.gmail.com> <201503060532.03842.gheskett@wdtv.com> <54F98DFA.4090503@davea.name> <201503061114.06957.gheskett@wdtv.com>
Newsgroups comp.lang.python
Message-ID <mailman.117.1425659322.21433.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Speeding up permutations generation Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2015-03-06 17:27 +0100

csiph-web