On 16 September 2011 20:21, zombie <thatiparthysreeni...@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?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

In base 2, the answer is 1 :)

Hopefully-helpfully-but-not-so-sure'ly yours,

--
Arnaud
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to