Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30571
| From | Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Layered object |
| Date | 2016-05-27 22:14 +0100 |
| Organization | Home |
| Message-ID | <J8uba0aeiLSXFwFK@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | (4 earlier) <01b07c96-617e-4d2f-83bc-e85fb4079a99@googlegroups.com> <3e435eda-049d-42e3-a633-5166155388cb@googlegroups.com> <80388e60-d044-40b4-8254-c5b92ed0a019@googlegroups.com> <ebbf4f76-ace5-4be0-b351-0ce9df7adb96@googlegroups.com> <874m9lnmbt.fsf@bsb.me.uk> |
In comp.lang.javascript message <874m9lnmbt.fsf@bsb.me.uk>, Thu, 26 May 2016 11:30:14, Ben Bacarisse <ben.usenet@bsb.me.uk> posted: >jonas.thornvall@gmail.com writes: ><snip> >> Regarding my code, it may not be beautiful but it certainly does what >> it is meant to do in a miracuous way. Finding Fib nr 100000 and >> printing it in 5 seconds. > >That seems to be very slow. On my laptop (newish, but 3 years old now) >I can calculate it in almost no time at all: > >$ time ./fib 100000 >x >./fib 100000 > x 0.00s user 0.00s system 44% cpu 0.009 total >$ wc x > 1 1 20900 x > >> That is a 21033 digit number... so my approach to programming may not >> be so bad afterall... > >I think you have a bug. The 100,000th Fibonacci number is 20,899 digits long. It is indeed, between 2.5e20898 and 2.6e20898, ... just over +2.59740693472217241661550340212759154148804853865176965847247707e20898 -- (c) John Stockton, Surrey, UK. ¬@merlyn.demon.co.uk Turnpike v6.05 MIME. Merlyn Web Site < > - FAQish topics, acronyms, & links.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Layered object jonas.thornvall@gmail.com - 2016-05-21 10:41 -0700
Re: Layered object Aleksandro <aleksandro@gmx.com> - 2016-05-21 19:41 -0400
Re: Layered object jonas.thornvall@gmail.com - 2016-05-21 23:42 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 03:50 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-22 09:03 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 14:59 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-22 15:57 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 22:46 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:13 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 23:05 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:15 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 23:08 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-23 08:31 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-24 05:38 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:22 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 22:56 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 23:07 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 23:10 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 23:24 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 01:47 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 01:53 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 02:58 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 06:42 -0700
Re: Layered object Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-05-26 11:30 +0100
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 03:47 -0700
Re: Layered object Tim Streater <timstreater@greenbee.net> - 2016-05-26 12:43 +0100
Re: Layered object Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-05-26 14:13 +0100
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 07:05 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 03:51 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 04:00 -0700
Re: Layered object Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-05-27 22:14 +0100
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 06:40 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:21 -0700
csiph-web