Live data from Hacker News

Ulam spiral

en.wikipedia.org

21–28 of 28 posts

Re: Ulam spiral

#21

Another perhaps surprising aspect, to me at least, is the apparent uniformity of the density of prime numbers in the plane. It's my understanding that the density of the prime numbers decreases as you go higher [1], so why does the plane look so uniformly covered? [1] http://en.wikipedia.org/wiki/Prime_number_theorem

> why does the plane look so uniformly covered?

It's a purely perceptual effect. As you track away from the center of the spiral, your eyes are following lines, which are one-dimensional, but you're tracking the lines through a plane, which is two-dimensional. The area increases rapidly as you move away from the center of the figure, but the one-dimensional lines don't have area. This gives the lines an apparent weight that they don't actually have.

Re: Ulam spiral

#23

Stanislav Ulam is an incredible man. Mathematician (Ulam Spiral, Monte Carlo Method), Manhattan Project participant, and part-time astronomer who devised a method for nuclear-explosive-powered space travel [0]. [0]: http://en.wikipedia.org/wiki/Nuclear_pulse_propulsion

Wasn't he also involved in an early atmosphere on Earth simulation experiment?

Edit: sure not, it's Urey. Four letters, starts with U. Mental index hash fail :)

Re: Ulam spiral

#28

Earlier quoted context omitted.

How did you correct for it? Did you just nonlinearly scale the final picture or did you scale the axis on the spiral itself and then sampled the result?

I was producing grey scale images where each pixel represented a block of numbers. The count in each block was divided by the density of primes (1/log(n)) at the center of the block. However, this actually made the middle turn grey, because even though the mean value of each pixel was the same, the variance wasn't. So then I corrected for this by calculating a "z-score" instead. But like I mentioned before, it didn't…

Very interesting!

I guess it specifically didn't turn up interesting patterns because a) you correct for density b) the distribution of primes is "noisy" (which is why they're so puzzling) and by averaging out the noise you get a fairly flat distribution

Post reply on HN