[Haskell-beginners] Why is it so slow to solve "10^(10^10)"?

Brandon Allbery allbery.b at gmail.com
Sun Sep 22 15:30:55 CEST 2013


On Sun, Sep 22, 2013 at 12:50 AM, Graham Gill <math.simplex at gmail.com>wrote:

>  10^(10^10) is a 1 followed by ten billion zeros. Naively evaluating that
> to an integer is going to cause time and memory problems in any software
> that supports arbitrary size integers - as Bob Ippolito said, it's
>

I wonder if they were looking for (**) instead of (^).

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130922/aca74326/attachment.htm>


More information about the Beginners mailing list