Dissecting the complexity of prime numbers

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
7
down vote

favorite
2












Each prime number greater than $9$, written in base $10$, ends with one of the four digits $1,3,7,9$. Therefore, each ten can be classified according to which of these four digits, summed to the ten, yields to a prime number.



For example, for the first ten we have $1 rightarrow 1,3,7,9$. In fact, $10+1$, $10+3$, $10+7$ and $10+9$ are all primes. Conversely, for the twentieth ten the association reads $20 rightarrow $, since there are no primes between $200$ and $209$.



It is easy to see that each ten is associated to one (and only one) group of symbols, chosen among the following $16$ distinct alternatives: $$, $1$, $3$, $7$, $9$, $1,3$, $1,7$, $1,9$, $3,7$, $3,9$, $7,9$, $1,3,7$, $1,3,9$, $1,7,9$, $3,7,9$, $1,3,7,9$.



For the sake of simplicity, we can identify each of these $16$ distinct groups of symbols with a single symbol, or with a single color, as illustrated below:



enter image description here



Each of these colors represents how many prime numbers there are in one ten (and which ones). In practice, we have just split the complexity of primes into tens and colors.



This allows us to rearrange the colors within the Pascal's triangle, by means of the associated ten, obtaining the following scheme (the numbers in the squares represent the tens):



enter image description here



The complexity of the primes sequence has been now split into rows, diagonals and colors.



An advantage of such representation is that it mixes groups of primes related to far tens, allowing maybe to identify patterns and/or to dig out connections among already known integer sequences. The clear disadvantage is that the patterns on this triangle depend on which base we use.



I partially introduced this representation of prime numbers here, but I am not sure whether these further developments overlap with some very well known technique (e.g. Sieve of Eratosthenes?).



In conclusion, just not to re-invent the wheel, my question is:




Do you know if such representation has been already devised? In that case, could you please give me some reference?




Sorry for naivety and incorrectness, and thank you very much for your suggestions and comments!



NOTE: The conjecture contained in the following EDIT is FALSE, and there is a mistake in the code! Please, if you have a good software to produce the picture, please tell me! Thanks! (Thanks also to Paul!)



EDIT: To reply to some comments, and adopting this somehow enhanced color code,



enter image description here



I produced the following plot (omitting the first ten)



enter image description here



I hope that there is not some mistake in my code! However,




It is conjectural that, for very big numbers, there cannot be colored squares other than on the outer edge of the triangle,




which means that, beyond a certain integer $N$, the primes will all fall in tens (powers of ten) that can be written in the form $t=binomnk$, where $k$ is $2,3,4$ maximum. This may lead to interesting consequences, considering that this property should not change much according to the base, and primes are infinite.



As mentioned in the NOTE, this picture is actually incorrect. It should look like this:



enter image description here



Still working on it!







share|cite|improve this question


















  • 1




    The most interesting thing is, it looks symmetric!
    – tarit goswami
    Aug 27 at 12:58






  • 1




    @taritgoswami Well, this is a property of Pascal's triangle.
    – Andrea Prunotto
    Aug 27 at 13:00






  • 1




    When there are no primes in a block of $10$, like between $200$ and $209$, you should denote this $20 to $, not $20 to 0$. The notation you use suggests that $200$ is prime. The former notation, $20 to $ correctly suggests that the set of primes is the empty set, i.e., there are no primes.
    – 6005
    Aug 27 at 19:52






  • 1




    @AndreaPrunotto: This is uncannily complete in many languages: rosettacode.org/wiki/Ulam_spiral_(for_primes) So instead of highlighting primes, highlight the ten's with your gradations.
    – Alex R.
    Aug 28 at 18:30







  • 1




    @AndreaPrunotto I tried to reproduce the image and I don't have the big white area. I think your code doesn't handle big numbers (numbers above $2^31-1$, the maximum value of a signed 32-bit integer) well. Which programming language are you using? You must use some big number library, which may be already available in the language you're using, or otherwise you can probably find it online somewhere.
    – Paul
    Aug 28 at 21:19















up vote
7
down vote

favorite
2












Each prime number greater than $9$, written in base $10$, ends with one of the four digits $1,3,7,9$. Therefore, each ten can be classified according to which of these four digits, summed to the ten, yields to a prime number.



For example, for the first ten we have $1 rightarrow 1,3,7,9$. In fact, $10+1$, $10+3$, $10+7$ and $10+9$ are all primes. Conversely, for the twentieth ten the association reads $20 rightarrow $, since there are no primes between $200$ and $209$.



It is easy to see that each ten is associated to one (and only one) group of symbols, chosen among the following $16$ distinct alternatives: $$, $1$, $3$, $7$, $9$, $1,3$, $1,7$, $1,9$, $3,7$, $3,9$, $7,9$, $1,3,7$, $1,3,9$, $1,7,9$, $3,7,9$, $1,3,7,9$.



For the sake of simplicity, we can identify each of these $16$ distinct groups of symbols with a single symbol, or with a single color, as illustrated below:



enter image description here



Each of these colors represents how many prime numbers there are in one ten (and which ones). In practice, we have just split the complexity of primes into tens and colors.



This allows us to rearrange the colors within the Pascal's triangle, by means of the associated ten, obtaining the following scheme (the numbers in the squares represent the tens):



enter image description here



The complexity of the primes sequence has been now split into rows, diagonals and colors.



An advantage of such representation is that it mixes groups of primes related to far tens, allowing maybe to identify patterns and/or to dig out connections among already known integer sequences. The clear disadvantage is that the patterns on this triangle depend on which base we use.



I partially introduced this representation of prime numbers here, but I am not sure whether these further developments overlap with some very well known technique (e.g. Sieve of Eratosthenes?).



In conclusion, just not to re-invent the wheel, my question is:




Do you know if such representation has been already devised? In that case, could you please give me some reference?




Sorry for naivety and incorrectness, and thank you very much for your suggestions and comments!



NOTE: The conjecture contained in the following EDIT is FALSE, and there is a mistake in the code! Please, if you have a good software to produce the picture, please tell me! Thanks! (Thanks also to Paul!)



EDIT: To reply to some comments, and adopting this somehow enhanced color code,



enter image description here



I produced the following plot (omitting the first ten)



enter image description here



I hope that there is not some mistake in my code! However,




It is conjectural that, for very big numbers, there cannot be colored squares other than on the outer edge of the triangle,




which means that, beyond a certain integer $N$, the primes will all fall in tens (powers of ten) that can be written in the form $t=binomnk$, where $k$ is $2,3,4$ maximum. This may lead to interesting consequences, considering that this property should not change much according to the base, and primes are infinite.



As mentioned in the NOTE, this picture is actually incorrect. It should look like this:



enter image description here



Still working on it!







share|cite|improve this question


















  • 1




    The most interesting thing is, it looks symmetric!
    – tarit goswami
    Aug 27 at 12:58






  • 1




    @taritgoswami Well, this is a property of Pascal's triangle.
    – Andrea Prunotto
    Aug 27 at 13:00






  • 1




    When there are no primes in a block of $10$, like between $200$ and $209$, you should denote this $20 to $, not $20 to 0$. The notation you use suggests that $200$ is prime. The former notation, $20 to $ correctly suggests that the set of primes is the empty set, i.e., there are no primes.
    – 6005
    Aug 27 at 19:52






  • 1




    @AndreaPrunotto: This is uncannily complete in many languages: rosettacode.org/wiki/Ulam_spiral_(for_primes) So instead of highlighting primes, highlight the ten's with your gradations.
    – Alex R.
    Aug 28 at 18:30







  • 1




    @AndreaPrunotto I tried to reproduce the image and I don't have the big white area. I think your code doesn't handle big numbers (numbers above $2^31-1$, the maximum value of a signed 32-bit integer) well. Which programming language are you using? You must use some big number library, which may be already available in the language you're using, or otherwise you can probably find it online somewhere.
    – Paul
    Aug 28 at 21:19













up vote
7
down vote

favorite
2









up vote
7
down vote

favorite
2






2





Each prime number greater than $9$, written in base $10$, ends with one of the four digits $1,3,7,9$. Therefore, each ten can be classified according to which of these four digits, summed to the ten, yields to a prime number.



For example, for the first ten we have $1 rightarrow 1,3,7,9$. In fact, $10+1$, $10+3$, $10+7$ and $10+9$ are all primes. Conversely, for the twentieth ten the association reads $20 rightarrow $, since there are no primes between $200$ and $209$.



It is easy to see that each ten is associated to one (and only one) group of symbols, chosen among the following $16$ distinct alternatives: $$, $1$, $3$, $7$, $9$, $1,3$, $1,7$, $1,9$, $3,7$, $3,9$, $7,9$, $1,3,7$, $1,3,9$, $1,7,9$, $3,7,9$, $1,3,7,9$.



For the sake of simplicity, we can identify each of these $16$ distinct groups of symbols with a single symbol, or with a single color, as illustrated below:



enter image description here



Each of these colors represents how many prime numbers there are in one ten (and which ones). In practice, we have just split the complexity of primes into tens and colors.



This allows us to rearrange the colors within the Pascal's triangle, by means of the associated ten, obtaining the following scheme (the numbers in the squares represent the tens):



enter image description here



The complexity of the primes sequence has been now split into rows, diagonals and colors.



An advantage of such representation is that it mixes groups of primes related to far tens, allowing maybe to identify patterns and/or to dig out connections among already known integer sequences. The clear disadvantage is that the patterns on this triangle depend on which base we use.



I partially introduced this representation of prime numbers here, but I am not sure whether these further developments overlap with some very well known technique (e.g. Sieve of Eratosthenes?).



In conclusion, just not to re-invent the wheel, my question is:




Do you know if such representation has been already devised? In that case, could you please give me some reference?




Sorry for naivety and incorrectness, and thank you very much for your suggestions and comments!



NOTE: The conjecture contained in the following EDIT is FALSE, and there is a mistake in the code! Please, if you have a good software to produce the picture, please tell me! Thanks! (Thanks also to Paul!)



EDIT: To reply to some comments, and adopting this somehow enhanced color code,



enter image description here



I produced the following plot (omitting the first ten)



enter image description here



I hope that there is not some mistake in my code! However,




It is conjectural that, for very big numbers, there cannot be colored squares other than on the outer edge of the triangle,




which means that, beyond a certain integer $N$, the primes will all fall in tens (powers of ten) that can be written in the form $t=binomnk$, where $k$ is $2,3,4$ maximum. This may lead to interesting consequences, considering that this property should not change much according to the base, and primes are infinite.



As mentioned in the NOTE, this picture is actually incorrect. It should look like this:



enter image description here



Still working on it!







share|cite|improve this question














Each prime number greater than $9$, written in base $10$, ends with one of the four digits $1,3,7,9$. Therefore, each ten can be classified according to which of these four digits, summed to the ten, yields to a prime number.



For example, for the first ten we have $1 rightarrow 1,3,7,9$. In fact, $10+1$, $10+3$, $10+7$ and $10+9$ are all primes. Conversely, for the twentieth ten the association reads $20 rightarrow $, since there are no primes between $200$ and $209$.



It is easy to see that each ten is associated to one (and only one) group of symbols, chosen among the following $16$ distinct alternatives: $$, $1$, $3$, $7$, $9$, $1,3$, $1,7$, $1,9$, $3,7$, $3,9$, $7,9$, $1,3,7$, $1,3,9$, $1,7,9$, $3,7,9$, $1,3,7,9$.



For the sake of simplicity, we can identify each of these $16$ distinct groups of symbols with a single symbol, or with a single color, as illustrated below:



enter image description here



Each of these colors represents how many prime numbers there are in one ten (and which ones). In practice, we have just split the complexity of primes into tens and colors.



This allows us to rearrange the colors within the Pascal's triangle, by means of the associated ten, obtaining the following scheme (the numbers in the squares represent the tens):



enter image description here



The complexity of the primes sequence has been now split into rows, diagonals and colors.



An advantage of such representation is that it mixes groups of primes related to far tens, allowing maybe to identify patterns and/or to dig out connections among already known integer sequences. The clear disadvantage is that the patterns on this triangle depend on which base we use.



I partially introduced this representation of prime numbers here, but I am not sure whether these further developments overlap with some very well known technique (e.g. Sieve of Eratosthenes?).



In conclusion, just not to re-invent the wheel, my question is:




Do you know if such representation has been already devised? In that case, could you please give me some reference?




Sorry for naivety and incorrectness, and thank you very much for your suggestions and comments!



NOTE: The conjecture contained in the following EDIT is FALSE, and there is a mistake in the code! Please, if you have a good software to produce the picture, please tell me! Thanks! (Thanks also to Paul!)



EDIT: To reply to some comments, and adopting this somehow enhanced color code,



enter image description here



I produced the following plot (omitting the first ten)



enter image description here



I hope that there is not some mistake in my code! However,




It is conjectural that, for very big numbers, there cannot be colored squares other than on the outer edge of the triangle,




which means that, beyond a certain integer $N$, the primes will all fall in tens (powers of ten) that can be written in the form $t=binomnk$, where $k$ is $2,3,4$ maximum. This may lead to interesting consequences, considering that this property should not change much according to the base, and primes are infinite.



As mentioned in the NOTE, this picture is actually incorrect. It should look like this:



enter image description here



Still working on it!









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 29 at 16:11

























asked Aug 27 at 12:25









Andrea Prunotto

1,299625




1,299625







  • 1




    The most interesting thing is, it looks symmetric!
    – tarit goswami
    Aug 27 at 12:58






  • 1




    @taritgoswami Well, this is a property of Pascal's triangle.
    – Andrea Prunotto
    Aug 27 at 13:00






  • 1




    When there are no primes in a block of $10$, like between $200$ and $209$, you should denote this $20 to $, not $20 to 0$. The notation you use suggests that $200$ is prime. The former notation, $20 to $ correctly suggests that the set of primes is the empty set, i.e., there are no primes.
    – 6005
    Aug 27 at 19:52






  • 1




    @AndreaPrunotto: This is uncannily complete in many languages: rosettacode.org/wiki/Ulam_spiral_(for_primes) So instead of highlighting primes, highlight the ten's with your gradations.
    – Alex R.
    Aug 28 at 18:30







  • 1




    @AndreaPrunotto I tried to reproduce the image and I don't have the big white area. I think your code doesn't handle big numbers (numbers above $2^31-1$, the maximum value of a signed 32-bit integer) well. Which programming language are you using? You must use some big number library, which may be already available in the language you're using, or otherwise you can probably find it online somewhere.
    – Paul
    Aug 28 at 21:19













  • 1




    The most interesting thing is, it looks symmetric!
    – tarit goswami
    Aug 27 at 12:58






  • 1




    @taritgoswami Well, this is a property of Pascal's triangle.
    – Andrea Prunotto
    Aug 27 at 13:00






  • 1




    When there are no primes in a block of $10$, like between $200$ and $209$, you should denote this $20 to $, not $20 to 0$. The notation you use suggests that $200$ is prime. The former notation, $20 to $ correctly suggests that the set of primes is the empty set, i.e., there are no primes.
    – 6005
    Aug 27 at 19:52






  • 1




    @AndreaPrunotto: This is uncannily complete in many languages: rosettacode.org/wiki/Ulam_spiral_(for_primes) So instead of highlighting primes, highlight the ten's with your gradations.
    – Alex R.
    Aug 28 at 18:30







  • 1




    @AndreaPrunotto I tried to reproduce the image and I don't have the big white area. I think your code doesn't handle big numbers (numbers above $2^31-1$, the maximum value of a signed 32-bit integer) well. Which programming language are you using? You must use some big number library, which may be already available in the language you're using, or otherwise you can probably find it online somewhere.
    – Paul
    Aug 28 at 21:19








1




1




The most interesting thing is, it looks symmetric!
– tarit goswami
Aug 27 at 12:58




The most interesting thing is, it looks symmetric!
– tarit goswami
Aug 27 at 12:58




1




1




@taritgoswami Well, this is a property of Pascal's triangle.
– Andrea Prunotto
Aug 27 at 13:00




@taritgoswami Well, this is a property of Pascal's triangle.
– Andrea Prunotto
Aug 27 at 13:00




1




1




When there are no primes in a block of $10$, like between $200$ and $209$, you should denote this $20 to $, not $20 to 0$. The notation you use suggests that $200$ is prime. The former notation, $20 to $ correctly suggests that the set of primes is the empty set, i.e., there are no primes.
– 6005
Aug 27 at 19:52




When there are no primes in a block of $10$, like between $200$ and $209$, you should denote this $20 to $, not $20 to 0$. The notation you use suggests that $200$ is prime. The former notation, $20 to $ correctly suggests that the set of primes is the empty set, i.e., there are no primes.
– 6005
Aug 27 at 19:52




1




1




@AndreaPrunotto: This is uncannily complete in many languages: rosettacode.org/wiki/Ulam_spiral_(for_primes) So instead of highlighting primes, highlight the ten's with your gradations.
– Alex R.
Aug 28 at 18:30





@AndreaPrunotto: This is uncannily complete in many languages: rosettacode.org/wiki/Ulam_spiral_(for_primes) So instead of highlighting primes, highlight the ten's with your gradations.
– Alex R.
Aug 28 at 18:30





1




1




@AndreaPrunotto I tried to reproduce the image and I don't have the big white area. I think your code doesn't handle big numbers (numbers above $2^31-1$, the maximum value of a signed 32-bit integer) well. Which programming language are you using? You must use some big number library, which may be already available in the language you're using, or otherwise you can probably find it online somewhere.
– Paul
Aug 28 at 21:19





@AndreaPrunotto I tried to reproduce the image and I don't have the big white area. I think your code doesn't handle big numbers (numbers above $2^31-1$, the maximum value of a signed 32-bit integer) well. Which programming language are you using? You must use some big number library, which may be already available in the language you're using, or otherwise you can probably find it online somewhere.
– Paul
Aug 28 at 21:19
















active

oldest

votes











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2896147%2fdissecting-the-complexity-of-prime-numbers%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2896147%2fdissecting-the-complexity-of-prime-numbers%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

tkz-euclide: tkzDrawCircle[R] not working

How to combine Bézier curves to a surface?

1st Magritte Awards