Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Primality sieve challenge Date: Mon, 25 Jan 2016 00:21:59 +0000 Organization: A noiseless patient Spider Lines: 37 Message-ID: <878u3e4ifs.fsf@bsb.me.uk> References: <5b608a56-e16b-4467-a0ce-4e30f6796920@googlegroups.com> <871t9gfa2z.fsf@bsb.me.uk> <8b01caa9-8c09-4e69-915b-81b67eba7edc@googlegroups.com> <0b16c016-5128-4b68-8046-fbec55700ec3@googlegroups.com> <60329a65-27f8-483e-bd6e-e262e952ee6f@googlegroups.com> <871t9fd6p7.fsf@bsb.me.uk> <57bd7c90-81fd-4fe9-b329-1d58db4ff3f1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="10898"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/VSWT9Y+GlkKfnovEf0livUMgrhu4SJw=" Cancel-Lock: sha1:m/zUAaQcAEkXGox/QGzTAam3Wzk= sha1:WyDAADPyuYhsU51Bsdpo3GjQCss= X-BSB-Auth: 1.55628e6731ecdfcaac5b.20160125002159GMT.878u3e4ifs.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:29433 "Chris M. Thomasson" writes: > On 1/23/2016 5:54 PM, Michael Haufe (TNO) wrote: >>> On Friday, January 22, 2016 at 12:44:49 PM UTC-6, Stefan Weiss wrote: >>> Pixel plots are often used to visually examine the randomness of series >>> of numbers. For example, here's the output of V8's Math.random() >>> function before and after the PRNG fix in December: >>> >>> http://goo.gl/8M4kuk > >> Ulam Spirals: >> > > FWIW, here is a little graph I did a while back: > > https://plus.google.com/101799841244447089430/posts/YeVfh7q5rD5 Very nice. > Here is a excerpt: > _______________________________________________ > this graph is based on the x and y axis representing their respective > primes. So the point (0,4) would the the 1st and 5th prime > numbers. The point (1, 3) would the be the 2nd and 4th prime > numbers. The color is based on how far apart they are from each > other. So, the distance of point (0, 1) would be abs(2 - 3). But this could be a bit clearer. I want to know where the origin is (top left?), and I'd word it like this: "In this graph the colour of point (n, m) is determined by abs(p_n - p_m) i.e. by the difference between the nth and mth prime, numbered from 0 (p_0 = 2, p_1 = 3, etc)." I'd like to know what the integer to colour mapping is, too. -- Ben.