way to calculate 2**1000 without expanding it?
arnodel at gmail.com
Fri Sep 16 22:00:24 CEST 2011
On 16 September 2011 20:21, zombie <thatiparthysreenivas at gmail.com> wrote:
> Hi guys,
> i am writing a program to sum up the digits of a number 2**1000?
> Is there a way/formula to do it without expanding it?
In base 2, the answer is 1 :)
More information about the Python-list