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


Groups > comp.lang.python > #36386

Re: Calculate Big Number

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <oscar.j.benjamin@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.029
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'interpreter': 0.04; 'seemed': 0.07; 'explanation': 0.09; 'cc:addr:python-list': 0.10; 'cc:name:python list': 0.16; 'skip:1 40': 0.16; 'subject:Big': 0.16; 'wrote:': 0.17; 'cc:2**0': 0.23; 'example': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; '(maybe': 0.29; '>>>>': 0.29; 'quickly': 0.32; 'could': 0.32; 'subject:Number': 0.33; 'received:google.com': 0.34; 'faster': 0.35; 'received:209.85': 0.35; 'enough': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'hello,': 0.39; 'header:Received:5': 0.40; 'provide': 0.62; 'more': 0.63; '2013': 0.84; 'oscar': 0.84; 'why?': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pcNX/5s6ltIsDp4WES0UwuLzONGRlQwZzdSc+K8kOOU=; b=FPGXf9oNuQotM6G3IXzf++ePrerewtZvuyxCqHrTyMaNHBhXBri37+/A4/rHeJblMm TKRUf2JmiOAwyndXMrf+oxrsP8VkD6oh4RLLkU0EYUEhEkQgnkyjZZzwiowGnKA2y6Dn IObXFHXDPgDKhdpEWeWJ+31Xbt+cnhLnvp5DNFZYprF5JcG5rv4uZrWC9Oa3yFy5Qxlb zCl2KQpSK2xiBrPUoKW9UB9zzUb9H+Uzbcy7gtqCuDqWLxggpbbX/+KVRtyK8ksF1/9b x107EBlZ+D+49GadUPZAaf8t9ghW0YdWTmWv9FCDHM30gkjtWRkhD3zclF+vBUpTnRtx zSDw==
MIME-Version 1.0
In-Reply-To <CAFLxTvn6siPpQ-QJ3HHFgOmV9vshR+CiXoqSGsP_F3foaB3cZQ@mail.gmail.com>
References <CAFLxTvn6siPpQ-QJ3HHFgOmV9vshR+CiXoqSGsP_F3foaB3cZQ@mail.gmail.com>
Date Tue, 8 Jan 2013 00:52:33 +0000
Subject Re: Calculate Big Number
From Oscar Benjamin <oscar.j.benjamin@gmail.com>
To Nac Temha <naccttemha@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.245.1357606362.2939.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1357606362 news.xs4all.nl 6940 [2001:888:2000:d::a6]:41461
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36386

Show key headers only | View raw


On 8 January 2013 00:44, Nac Temha <naccttemha@gmail.com> wrote:
> Hello,
> How to quickly calculate large numbers. For example
>>>> (10**25) * (2**50)
> 11258999068426240000000000000000000000000L

I just tested that line in the interpreter and it ran so quickly it
seemed instantaneous (maybe my computer is faster than yours).

Perhaps you could provide more of an explanation about what isn't fast
enough and why?


Oscar

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


Thread

Re: Calculate Big Number Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-01-08 00:52 +0000

csiph-web