TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Prime number patterns

359 pointsby dmarinocalmost 13 years ago

21 comments

aaronharnlyalmost 13 years ago
Very, very lovely. You might (or might not) also be familiar with the Ulam Spiral[1] or the arguably more beautiful Sacks Spiral[2], which do reveal certain patterns in the distribution of the primes.<p>I used the software from this site[3] to generate a large Sacks spiral graphic, which I had custom-printed on my shower curtain. To most folks who see it, it's just some pattern of dots, but knowing the order within gives me great joy.<p>[1] <a href="https://en.wikipedia.org/wiki/Ulam_spiral" rel="nofollow">https://en.wikipedia.org/wiki/Ulam_spiral</a><p>[2] <a href="http://www.numberspiral.com" rel="nofollow">http://www.numberspiral.com</a><p>[3] <a href="http://www.dcs.gla.ac.uk/~jhw/spirals/index.html" rel="nofollow">http://www.dcs.gla.ac.uk/~jhw/spirals/index.html</a>
评论 #4256957 未加载
评论 #4259787 未加载
评论 #4260373 未加载
mutagenalmost 13 years ago
I'd like to add tone generation so you could hear the various harmonics being added and removed as you worked up through the numbers, occasionally hitting a pure sine wave as you hit a prime number.
kevindicationalmost 13 years ago
Two things that were non-obvious to me but made me extremely happy when they worked: panning and zooming.
评论 #4256776 未加载
评论 #4256388 未加载
评论 #4255978 未加载
评论 #4258678 未加载
评论 #4257789 未加载
alokmalmost 13 years ago
Its beautiful. It has an interesting formation of an infinite coaxial cones. with semi vertical angles arctan(1/3), arctan(1/5), ... arctan(1/(2n-1))... (The even numbers slopes form the progression of circles on the top). Although that doesn't give the pattern of the primes, it is formed because every number has a multiple for each natural number.
ColinWrightalmost 13 years ago
Interesting - exact same submission - exact same URL - submitted 12 days ago:<p><a href="http://news.ycombinator.com/item?id=4202198" rel="nofollow">http://news.ycombinator.com/item?id=4202198</a><p>1 upvote, no discussion.
评论 #4256598 未加载
toomuchcoffeealmost 13 years ago
I find this app to be quite interesting, actually. Even though it's really more a visualization of compositeness rather than of primality per se.
评论 #4256480 未加载
jasondaviesalmost 13 years ago
I hadn't realised this before making it, but one interesting pattern is that the number in between twin primes is always abundant, if greater than 6.<p>It's reasonably simple to prove using the fact that every twin prime pair except (3, 5) is of the form (6n − 1, 6n + 1).
评论 #4258420 未加载
supoalmost 13 years ago
I didn't know that the Sieve of eratosthenes could look this good!
cturneralmost 13 years ago
It's interesting that the curve on the left passes through zero rather than one.<p>I've always been inclined to think 1<i>x = x, and think of one as fundamental. But the pattern shows that rather than 1</i>x being fundamental, rather there is the issue of x exists or x doesn't exist. x doesn't exist =&#62; 0. I wonder if 1*x = x is really a distraction away from a better type of thinking around existence.<p>Also, I've always been wary of the part of the rule that says that 1 is not a prime number. Why is that?.
评论 #4258179 未加载
评论 #4261219 未加载
forintialmost 13 years ago
I think he meant "El Padrón de los Números Primos". Patrón means "boss", not "pattern".
评论 #4256371 未加载
评论 #4256110 未加载
Bullislander05almost 13 years ago
This is extremely neat! The visual semi-patterns here are very interesting.
craig552ukalmost 13 years ago
3^n sequence looks like fractal penguins
guard-of-terraalmost 13 years ago
It would look 2x nicer if they removed 0 ~ prime number branches and waves beginning from primes. Much easier to spot, less clutter.
评论 #4256049 未加载
评论 #4255996 未加载
pehrlichalmost 13 years ago
wow, that is very nice. Does anyone else think they notice that primes are near to highly divisible numbers?
评论 #4257562 未加载
评论 #4256147 未加载
crisnoblealmost 13 years ago
I had always liked the number 42. However, I must say n=48 looks a lot nicer.
评论 #4256589 未加载
wildtypealmost 13 years ago
Lets see how the explanation help me to solve ProjectEuler's problems.
minikrobalmost 13 years ago
Simply stunning, many thanks for the link !
Zenstalmost 13 years ago
Cute, though does appear to be limited by browser initialwindow size.<p>Thing about prime numbers - ask yourself this question: Does the universe operate on base 10!<p>Endless fun aint they.
评论 #4256425 未加载
评论 #4257051 未加载
评论 #4255941 未加载
mayneackalmost 13 years ago
This doesn't work in IE 8
JoeCortopassialmost 13 years ago
Stop it, stop it, stop it, just stop. Once an article reaches the front page, it's title is no longer editable. It causes confusion and frustration, and is obviously an issue that a lot of people dislike. I don't care about prime numbers, this article was all about the visualization to me. Every time a title gets changed like this, you are telling your user base that you don't care about what they think. I feel like I'm back in Digg, waiting for something like Reddit to pop up so I don't have to deal with the 'power' users.<p>/rant
评论 #4258860 未加载
评论 #4258530 未加载
评论 #4260513 未加载
评论 #4257032 未加载
评论 #4257481 未加载
评论 #4257373 未加载
thltalmost 13 years ago
it can be eye catchy but says really nothing interesting about prime numbers nor their patterns
评论 #4256154 未加载
评论 #4256258 未加载