Speeding up permutations generation
Gene Heskett
gheskett at wdtv.com
Fri Mar 6 11:51:57 EST 2015
On Friday 06 March 2015 11:30:08 Dave Angel wrote:
> On 03/06/2015 11:14 AM, Gene Heskett wrote:
> > On Friday 06 March 2015 06:22:34 Dave Angel wrote:
> >> Sorry, but 50! is not even close to 50**50. The latter is 85
> >> digits as you say, but 50! is "only" 64.
> >>
> >>
> >> 30414093201713378043612608166064768844377641568960512000000000000L
> >
> > What utility output that as an L ?
>
> Python 2.7 interpreter, after calculating factorial with the obvious
> loop. Basically, it's using repr() on the expression, so it flags the
> integer as a long, rather than an int.
>
> I debated not including it, but this way I was sure of getting the
> right number of zeroes. My copy/paste is notorious for missing a
> character or two at each end.
Chuckle, so is mine Dave. Mouse, holding breath cuz I have a finger on a
button, is turning blue and finally exhales in desperation sort of thing
I guess. Particularly against the left margin of a string. I can't see
a single reason why a drag the mouse copy has to die if the mouse
moves .0000001" past the left margin. But I didn't write it so I've no
clue why it doesn't just take the whole damned highlighted string & be
done with it. <exasperated sigh>
> --
> DaveA
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
More information about the Python-list
mailing list