This is an unrealistic attempt to discover something about prime numbers by extrapolating data using the binary representation.
I've included a dataset with the first million prime numbers (yes, a million). There is also a smaller version for testing (~10K).
I was playing around with prime numbers trying to win a million dollars (cough), and then I got stuck with the idea of manipulating them using binary representation. I tried also other base-n representations, but they weren't that helpful. What caught my attention is the fact that prime numbers follow some sort of structure; they all begin and end with a binary value 0b1
.
With this idea in mind, I wrote down a script that elaborates the dataset of prime numbers in decimal and transformed them into binary. Then, I proceeded by "unwrapping" the common structure of these binary numbers by removing the first and the last digit, which in all cases occurred to be 1. (Note that the first digit is always 1 for any base-2 number, and the last digit is always 1 too because they're all odd numbers except for 0b10
). So here comes the idea of the "nucleus" of the number.
To give you an example, this is a sample of the outcome of the script.
Then I noticed something quite strange (actually, it's not that strange, but I was enthusiastic about it): the decimal nucleus works in a... cyclical way. Whenever there is an overflow in the binary nucleus, a new digit is needed, so the counter starts from the beginning because we are taking into consideration only the nucleus and not the whole number.
I plotted the output of the script using R, and this is the result.
It has a curious behavior, and the shape is always the same independently of the size of the dataset.
It was fun; I tried some other manipulations but didn't really bring anything that looks useful, to say the least.
Maybe it's not a groundbreaking result, but it caught my attention.