Sieve for Prime Numbers











up vote
3
down vote

favorite
1












I will use some simple arguments on a prime numbers formula that has been deterministically checked by a computer. I would like to compare this result with others you already know.



The set of all natural numbers up to some number E is identical to the set formed by the union of all primes and its multiples up to E. Therefore, the number of elements in both sets must be the same. Notation:



1) $p_{i}$ is the i-th prime



2) $D(p{_k})$ is the set comprising all the prime numbers up to $p{_k}$



3) $W(A)$ is the set of all subsets of the set $A$



4) $V(W)$ is the function that gives the product of all the elements of $W$



5) $n(A)$ is the function that counts the elements of the set $A$



Note that the number of multiples of $a$ up to $E$ is given by $lfloorfrac{E}{a}rfloor$
The result of the discussion above is that, for every E:



$$displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{E}{V(A)} right rfloor = E - 1.$$



Note that this is the straightforward use of the inclusion-exclusion principle on the left side of the equation, while the right side is the simple statement of the fact that the number of natural numbers up to $E$ is $E$. However, since we consider the prime numbers start with 2, the union of the sets of all primes and its multiples are equal to the natural numbers equal or greater than 2, and because of this we need to subtract one from $E$ (the set of non-zero natural numbers starting from 2 up to $E$ have $E-1$ elements). The formula above holds as long as $D(p{_k})$ is the set of all primes up to $E$. However, if there is at least one prime missing, this equality will necessarily not hold (since this number would not be multiple of any other prime, and the union of all the sets of primes and its multiples up to $p{_k}$ wouldn't be equal $A$ anymore).



As a consequence, the least natural $E$ for which the above equality does not hold is the next prime after $D(p{_k})$ (and the difference between them is unitary). Therefore $p{_{k+1}}$ is the least integer that satisfies the equation below):



$displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{p{_{k+1}}}{V(A)} right rfloor = p{_{k+1}} - 2$



A simple case is:



$left lfloor frac{3}{2} right rfloor = 1 \$
While $3-2=1$ also.



And:



$left lfloor frac{7}{2} right rfloor + left lfloor frac{7}{3} right rfloor + left lfloor frac{7}{5} right rfloor- left lfloor frac{7}{6} right rfloor- left lfloor frac{7}{10} right rfloor- left lfloor frac{7}{15} right rfloor + left lfloor frac{7}{30} right rfloor= 5 \$
While $7-2=5$ also.



This seems an approach very similar to that of other sieves, but it focuses on obtaining the next prime instead of the number of primes on a given interval.




Is this worth anything?











share|cite|improve this question




























    up vote
    3
    down vote

    favorite
    1












    I will use some simple arguments on a prime numbers formula that has been deterministically checked by a computer. I would like to compare this result with others you already know.



    The set of all natural numbers up to some number E is identical to the set formed by the union of all primes and its multiples up to E. Therefore, the number of elements in both sets must be the same. Notation:



    1) $p_{i}$ is the i-th prime



    2) $D(p{_k})$ is the set comprising all the prime numbers up to $p{_k}$



    3) $W(A)$ is the set of all subsets of the set $A$



    4) $V(W)$ is the function that gives the product of all the elements of $W$



    5) $n(A)$ is the function that counts the elements of the set $A$



    Note that the number of multiples of $a$ up to $E$ is given by $lfloorfrac{E}{a}rfloor$
    The result of the discussion above is that, for every E:



    $$displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{E}{V(A)} right rfloor = E - 1.$$



    Note that this is the straightforward use of the inclusion-exclusion principle on the left side of the equation, while the right side is the simple statement of the fact that the number of natural numbers up to $E$ is $E$. However, since we consider the prime numbers start with 2, the union of the sets of all primes and its multiples are equal to the natural numbers equal or greater than 2, and because of this we need to subtract one from $E$ (the set of non-zero natural numbers starting from 2 up to $E$ have $E-1$ elements). The formula above holds as long as $D(p{_k})$ is the set of all primes up to $E$. However, if there is at least one prime missing, this equality will necessarily not hold (since this number would not be multiple of any other prime, and the union of all the sets of primes and its multiples up to $p{_k}$ wouldn't be equal $A$ anymore).



    As a consequence, the least natural $E$ for which the above equality does not hold is the next prime after $D(p{_k})$ (and the difference between them is unitary). Therefore $p{_{k+1}}$ is the least integer that satisfies the equation below):



    $displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{p{_{k+1}}}{V(A)} right rfloor = p{_{k+1}} - 2$



    A simple case is:



    $left lfloor frac{3}{2} right rfloor = 1 \$
    While $3-2=1$ also.



    And:



    $left lfloor frac{7}{2} right rfloor + left lfloor frac{7}{3} right rfloor + left lfloor frac{7}{5} right rfloor- left lfloor frac{7}{6} right rfloor- left lfloor frac{7}{10} right rfloor- left lfloor frac{7}{15} right rfloor + left lfloor frac{7}{30} right rfloor= 5 \$
    While $7-2=5$ also.



    This seems an approach very similar to that of other sieves, but it focuses on obtaining the next prime instead of the number of primes on a given interval.




    Is this worth anything?











    share|cite|improve this question


























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I will use some simple arguments on a prime numbers formula that has been deterministically checked by a computer. I would like to compare this result with others you already know.



      The set of all natural numbers up to some number E is identical to the set formed by the union of all primes and its multiples up to E. Therefore, the number of elements in both sets must be the same. Notation:



      1) $p_{i}$ is the i-th prime



      2) $D(p{_k})$ is the set comprising all the prime numbers up to $p{_k}$



      3) $W(A)$ is the set of all subsets of the set $A$



      4) $V(W)$ is the function that gives the product of all the elements of $W$



      5) $n(A)$ is the function that counts the elements of the set $A$



      Note that the number of multiples of $a$ up to $E$ is given by $lfloorfrac{E}{a}rfloor$
      The result of the discussion above is that, for every E:



      $$displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{E}{V(A)} right rfloor = E - 1.$$



      Note that this is the straightforward use of the inclusion-exclusion principle on the left side of the equation, while the right side is the simple statement of the fact that the number of natural numbers up to $E$ is $E$. However, since we consider the prime numbers start with 2, the union of the sets of all primes and its multiples are equal to the natural numbers equal or greater than 2, and because of this we need to subtract one from $E$ (the set of non-zero natural numbers starting from 2 up to $E$ have $E-1$ elements). The formula above holds as long as $D(p{_k})$ is the set of all primes up to $E$. However, if there is at least one prime missing, this equality will necessarily not hold (since this number would not be multiple of any other prime, and the union of all the sets of primes and its multiples up to $p{_k}$ wouldn't be equal $A$ anymore).



      As a consequence, the least natural $E$ for which the above equality does not hold is the next prime after $D(p{_k})$ (and the difference between them is unitary). Therefore $p{_{k+1}}$ is the least integer that satisfies the equation below):



      $displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{p{_{k+1}}}{V(A)} right rfloor = p{_{k+1}} - 2$



      A simple case is:



      $left lfloor frac{3}{2} right rfloor = 1 \$
      While $3-2=1$ also.



      And:



      $left lfloor frac{7}{2} right rfloor + left lfloor frac{7}{3} right rfloor + left lfloor frac{7}{5} right rfloor- left lfloor frac{7}{6} right rfloor- left lfloor frac{7}{10} right rfloor- left lfloor frac{7}{15} right rfloor + left lfloor frac{7}{30} right rfloor= 5 \$
      While $7-2=5$ also.



      This seems an approach very similar to that of other sieves, but it focuses on obtaining the next prime instead of the number of primes on a given interval.




      Is this worth anything?











      share|cite|improve this question















      I will use some simple arguments on a prime numbers formula that has been deterministically checked by a computer. I would like to compare this result with others you already know.



      The set of all natural numbers up to some number E is identical to the set formed by the union of all primes and its multiples up to E. Therefore, the number of elements in both sets must be the same. Notation:



      1) $p_{i}$ is the i-th prime



      2) $D(p{_k})$ is the set comprising all the prime numbers up to $p{_k}$



      3) $W(A)$ is the set of all subsets of the set $A$



      4) $V(W)$ is the function that gives the product of all the elements of $W$



      5) $n(A)$ is the function that counts the elements of the set $A$



      Note that the number of multiples of $a$ up to $E$ is given by $lfloorfrac{E}{a}rfloor$
      The result of the discussion above is that, for every E:



      $$displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{E}{V(A)} right rfloor = E - 1.$$



      Note that this is the straightforward use of the inclusion-exclusion principle on the left side of the equation, while the right side is the simple statement of the fact that the number of natural numbers up to $E$ is $E$. However, since we consider the prime numbers start with 2, the union of the sets of all primes and its multiples are equal to the natural numbers equal or greater than 2, and because of this we need to subtract one from $E$ (the set of non-zero natural numbers starting from 2 up to $E$ have $E-1$ elements). The formula above holds as long as $D(p{_k})$ is the set of all primes up to $E$. However, if there is at least one prime missing, this equality will necessarily not hold (since this number would not be multiple of any other prime, and the union of all the sets of primes and its multiples up to $p{_k}$ wouldn't be equal $A$ anymore).



      As a consequence, the least natural $E$ for which the above equality does not hold is the next prime after $D(p{_k})$ (and the difference between them is unitary). Therefore $p{_{k+1}}$ is the least integer that satisfies the equation below):



      $displaystylesumlimits_{A subset W(D(p{_k}))} (-1)^{1+n(A)} left lfloor frac{p{_{k+1}}}{V(A)} right rfloor = p{_{k+1}} - 2$



      A simple case is:



      $left lfloor frac{3}{2} right rfloor = 1 \$
      While $3-2=1$ also.



      And:



      $left lfloor frac{7}{2} right rfloor + left lfloor frac{7}{3} right rfloor + left lfloor frac{7}{5} right rfloor- left lfloor frac{7}{6} right rfloor- left lfloor frac{7}{10} right rfloor- left lfloor frac{7}{15} right rfloor + left lfloor frac{7}{30} right rfloor= 5 \$
      While $7-2=5$ also.



      This seems an approach very similar to that of other sieves, but it focuses on obtaining the next prime instead of the number of primes on a given interval.




      Is this worth anything?








      prime-numbers sieve-theory






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 21 at 11:56









      Klangen

      1,50811332




      1,50811332










      asked Nov 18 '13 at 0:14









      user109573

      163




      163



























          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f571162%2fsieve-for-prime-numbers%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f571162%2fsieve-for-prime-numbers%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...