Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <3251928.WeJvBNZfad@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 11 Sep 2013 10:39:33 +0200 User-Agent: KNode/4.10.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 18 NNTP-Posting-Date: 11 Sep 2013 10:39:34 CEST NNTP-Posting-Host: 3ae9bcdb.newsspool3.arcor-online.net X-Trace: DXC=LneX6LJfV4\YI9]OHn9o5^McF=Q^Z^V3X4Fo<]lROoRQ8kFjK55GPR X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:21260 Stefan Weiss wrote: > […] I just calculated the [prime] numbers up to 200M. There are 11078937 > of them, which would require ~44MB of storage (using 4 bytes to store a > number). If I went the full 2B, the necessary disk storage would still be > less than half a gig. […] The relevant ECMAScript implementations support only one numeric data type, Number, which is an implementation of IEEE-754 double-precision floating- point values. Each such value requires 64 bits of storage (1 sign bit, 11 exponent bits, and 52 mantissa bits), or _8_ bytes whereas each byte consists of 8 bits. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.