The input for bc ?
$  time echo 28433 * 2^7830457 + 1 | bc > result

real    5m0.550s
user    5m0.231s
sys     0m0.140s

hth

> -----Original Message-----
> From: [email protected] [mailto:programming-
> [email protected]] On Behalf Of David Vaughan
> Sent: woensdag 6 juli 2011 18:04
> To: Programming forum
> Subject: Re: [Jprogramming] Large numbers
> 
> Could you post your input please? I gave p after waiting another 30 minutes.
> :/
> I am also curious about the 6!:2 function.
> I might input something, and it takes maybe 1 second between my pressing
> enter and the result being displayed, but if I time it with 6!:2, it tells me 
> it only
> took 0.0005394 seconds (or a similar number).
> What's the reason for this indiscrepancy?
> ___________________________
> 
> David Vaughan
> 
> On 6 Jul 2011, at 16:45, Ben Gorte - LR <[email protected]> wrote:
> 
> > FWIW, bc on my old linux laptop computed it in the last 5 minutes.
> > 2357207 digits indeed (should I post them?)
> >
> > Ben
> >
> >> -----Original Message-----
> >> From: [email protected] [mailto:programming-
> >> [email protected]] On Behalf Of David Vaughan
> >> Sent: woensdag 6 juli 2011 17:33
> >> To: Programming forum
> >> Subject: [Jprogramming] Large numbers
> >>
> >> Hi, what's the largest number J can compute?
> >> I'm looking to compute 28433 * 2^7830457 + 1, which has 2357207 digits. I
> >> started calculating it, but it's taking a very long time (obviously), an 
> >> I'm
> >> wondering how long it's likely to take, and whether it's even possible.
> >>
> >> Thanks.
> >> ___________________________
> >>
> >> David Vaughan
> >> ----------------------------------------------------------------------
> >> For information about J forums see
> http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to