Intro:
See this and this post for my intro on random-walk style visualizations.
Prime Numbers:
Let’s try a random-walk based upon the first 100,000 prime numbers.
First we load in the data obtained from here.
Now, as before, we translate these values into random-walk coordinates.
val |
x |
y |
2 |
0.0000000 |
0.0000000 |
3 |
0.1411200 |
-0.9899925 |
5 |
-0.8178043 |
-0.7063303 |
7 |
-0.1608177 |
0.0475719 |
11 |
-1.1608079 |
0.0519976 |
13 |
-0.7406408 |
0.9594444 |
Make a plot function to draw the walk.
Plot it!
The First 100,000 Primes