Marmilo
Retired Staff / Scale Inspector
TEAM HAWK
Atlas
Fly me to the Moon
Under Pressure
Copycat
Registered
MOTY 2022
There was a mathematian called Ulam, and he discovered that if you write out numbers on a square spiral like this (or bigger):
4 3 2
5 0 1
7 8 9
now you leave only prime numbers
3 2
5
7
now replace them with something like an asterisk
* *
*
*
So, I wrote a c++ program that generates them. For a square of size 8, it looks like this:
* *
*
* * *
* * * * *
*
* *
* *
* *
You can see some lines forming now
And after figuring out how to zoom out the terminal I can do this:
that's 300x300 tiles.
What do you guys think?
4 3 2
5 0 1
7 8 9
now you leave only prime numbers
3 2
5
7
now replace them with something like an asterisk
* *
*
*
So, I wrote a c++ program that generates them. For a square of size 8, it looks like this:
* *
*
* * *
* * * * *
*
* *
* *
* *
You can see some lines forming now
And after figuring out how to zoom out the terminal I can do this:
that's 300x300 tiles.
What do you guys think?
Last edited: