Sierpinski Spiral: An Intriguing Pattern of Prime Numbers

  • Thread starter Thread starter lokofer
  • Start date Start date
  • Tags Tags
    Prime Spiral
Click For Summary
SUMMARY

The discussion centers on the exploration of prime number patterns, specifically the "Sierpinski spiral" and its relation to the "Ulam spiral." Participants analyze mathematical functions to graph prime numbers, particularly focusing on the expression y=0.91^{\frac{2x}{3}}(\int_{0}^{x} Sin(x) + \int_{0}^{x} x). The conversation highlights the challenges in accurately modeling the distribution of primes and suggests that the first thousand primes may not provide a representative sample for analysis. References to external resources like the Prime Number Theorem and prime spiral visualizations are also included for further understanding.

PREREQUISITES
  • Understanding of prime number distribution and patterns
  • Familiarity with mathematical functions and graphing techniques
  • Knowledge of calculus, specifically integration and sinusoidal functions
  • Basic understanding of polar equations and their applications
NEXT STEPS
  • Research the Ulam spiral and its mathematical significance
  • Learn about the Prime Number Theorem and its implications for prime distribution
  • Explore advanced graphing techniques for visualizing mathematical functions
  • Investigate asymptotic behavior of prime numbers using external resources like Wolfram MathWorld
USEFUL FOR

Mathematicians, educators, students in advanced mathematics, and anyone interested in the patterns and properties of prime numbers.

lokofer
Messages
104
Reaction score
0
Prime "spiral"?..

Sorry i don't know the name of this "Phenomenon" i heard (due to Sierpinski perhaps?) that if you distributed the prime numbers into an square in some manner there was an spiral that..run over all primes or something similar...i think it was called "Sierpinski spiral" or something similar...is there any information?..thanks...:frown: :frown:
 
Physics news on Phys.org
Try searching for "Ulam spiral" or "Prime spiral"
 
Except that it is not a very "good" spiral. Patterns in prime numbers are generally in the eye of the beholder.
 
Out of curiosity I stared at the first 25 Prime numbers...from 2 to 101. They seem to form a parabola with irregularities that repeat periodically...like a sin function going along the lnie of a parabola...

Okay...ok I'm coming up with something. I graphed the following:

y1=Fnint(sin(x),x,0,x)+Fnint(x),x,0,x) and it does look alike. It's too abrupt, it needs a rational coefficient in front but it matches the first points. Looks like I'll be up for a few more hours...:)

Edit1: 0.6 in front does it for first few terms but the raise still catches up too fast. the coefficient needs to have some X in it...

Edit2: I added a * 0.91^{\frac{2x} {3}} at the end of the expression to keep it from increasing so fast...it's still too fast...

Edit3: one thing I'm noticing the "spirals" are bigger and bigger as numbers go up. The SIn function needs a +x maybe?

Did anyone actually try this ever?

Well that's my shot at the prime numbers...

y=0.91^{\frac{2x} {3}}(\int_{0}^{x} Sin({x}) + \int_{0}^{x} x)

It's too slow for primes past the 50s area but...I'm sure someone smarter than me can figure it out...unless soemone already has.
 
Last edited:
Robokapp said:
Well that's my shot at the prime numbers...

y=0.91^{\frac{2x} {3}}(\int_{0}^{x} Sin({x}) + \int_{0}^{x} x)

Whay are you trying to do here? I don't understand at all what this function is supposed to be doing.
 
well...i graphed it as (x, y) values where x goes up by 1. and it looked like a diagonally waving function. So how do you make a sin function go diagonally? you give it some \int{x} so it looks triangular, and then stick a sin(x) or cos(x) to make it wave...and then i just played with it to make it somehow fit the pattern that the plot set for me...

it looks like a sin function wrapped around the y=x line i guess...but I have no clue how to express that in polar equations. It was 6am...I was bored. don't ask.

and the first part...well the "wavings" or "Spirals" were changing regularly, so somehow i had to express that change in them as something with "x" in them...

0.91 raised to some power of x seemed to reduce the increase efficiently...for first 20 or so numbers.
 
Last edited:
Robokapp said:
it looks like a sin function wrapped around the y=x line i guess...but I have no clue how to express that in polar equations. It was 6am...I was bored. don't ask.

That's usually handled with a linear function + a sinusoid (y=x+sin(x), for example).

Robokapp said:
0.91 raised to some power of x seemed to reduce the increase efficiently...for first 20 or so numbers.

The first thouand or so primes aren't particularly representative. Try focusing on the larger ones more.
 
Robokapp said:
well...i graphed it as (x, y) values where x goes up by 1. and it looked like a diagonally waving function.

You mean you were looking at the points (n,p_n) where p_n is the nth prime? like (1,2), (2, 3), (3, 5), (4, 7), etc.??

Your function from before y=0.91^{\frac{2x} {3}}(\int_{0}^{x} Sin({x}) + \int_{0}^{x} x) tends to zero as x-> infinity, and is decreasing around x=40 so it can't be close for very long (as mentioned the first thousand primes don't say much, let alone the first 25).

You might want to take a look at http://primes.utm.edu/howmany.shtml#2 for asymptotics for the nth prime and http://mathworld.wolfram.com/PrimeSpiral.html to see what the "prime spiral" from the OP was referring to.
 
you seem to be noticing the convexity of the prime number graph, as revealed by gauss's formula in hadamard's(?) "prime number theorem."
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 36 ·
2
Replies
36
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
14
Views
3K
  • · Replies 21 ·
Replies
21
Views
9K
  • · Replies 32 ·
2
Replies
32
Views
5K
  • · Replies 14 ·
Replies
14
Views
6K
Replies
20
Views
6K