Name of the theorem used for testing the primality of a number












-1














$n$ is prime $iff$ $a^{n-1} equiv 1 mod n hspace{10mm} forall 1 le a le n-1$



What is the name of this theorem in literature?










share|cite|improve this question





























    -1














    $n$ is prime $iff$ $a^{n-1} equiv 1 mod n hspace{10mm} forall 1 le a le n-1$



    What is the name of this theorem in literature?










    share|cite|improve this question



























      -1












      -1








      -1







      $n$ is prime $iff$ $a^{n-1} equiv 1 mod n hspace{10mm} forall 1 le a le n-1$



      What is the name of this theorem in literature?










      share|cite|improve this question















      $n$ is prime $iff$ $a^{n-1} equiv 1 mod n hspace{10mm} forall 1 le a le n-1$



      What is the name of this theorem in literature?







      elementary-number-theory reference-request prime-numbers primality-test






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 22 '18 at 8:01







      hanugm

















      asked Nov 22 '18 at 7:50









      hanugmhanugm

      819621




      819621






















          1 Answer
          1






          active

          oldest

          votes


















          1














          $Longrightarrow$ is Fermat's little theorem



          $Longleftarrow$ is the definition of prime: any $a<n$ is coprime to $n$, and therefore $n$ must be prime.






          share|cite|improve this answer





















          • Does the prime definition have any other name?
            – hanugm
            Nov 22 '18 at 8:06










          • @hanugm Why would you want another name?
            – Arthur
            Nov 22 '18 at 8:09










          • $implies$ part is fine but does the other part has any other name other than saying as a prime definition? Because it is a key property for prime numbers, so I am guessing that some name should be there for that result.
            – hanugm
            Nov 22 '18 at 8:11










          • I want to see for its complete reference, so the name of the theorem would help me a lot.
            – hanugm
            Nov 22 '18 at 8:12










          • @hanugm It's such an immediate consequence of the definition of prime numbers, yet it's relatively specialised. I can't imagine that it has a name. Call the entire thing "Fermat's little theorem", and no one would bat an eye.
            – Arthur
            Nov 22 '18 at 8:16













          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%2f3008859%2fname-of-the-theorem-used-for-testing-the-primality-of-a-number%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          $Longrightarrow$ is Fermat's little theorem



          $Longleftarrow$ is the definition of prime: any $a<n$ is coprime to $n$, and therefore $n$ must be prime.






          share|cite|improve this answer





















          • Does the prime definition have any other name?
            – hanugm
            Nov 22 '18 at 8:06










          • @hanugm Why would you want another name?
            – Arthur
            Nov 22 '18 at 8:09










          • $implies$ part is fine but does the other part has any other name other than saying as a prime definition? Because it is a key property for prime numbers, so I am guessing that some name should be there for that result.
            – hanugm
            Nov 22 '18 at 8:11










          • I want to see for its complete reference, so the name of the theorem would help me a lot.
            – hanugm
            Nov 22 '18 at 8:12










          • @hanugm It's such an immediate consequence of the definition of prime numbers, yet it's relatively specialised. I can't imagine that it has a name. Call the entire thing "Fermat's little theorem", and no one would bat an eye.
            – Arthur
            Nov 22 '18 at 8:16


















          1














          $Longrightarrow$ is Fermat's little theorem



          $Longleftarrow$ is the definition of prime: any $a<n$ is coprime to $n$, and therefore $n$ must be prime.






          share|cite|improve this answer





















          • Does the prime definition have any other name?
            – hanugm
            Nov 22 '18 at 8:06










          • @hanugm Why would you want another name?
            – Arthur
            Nov 22 '18 at 8:09










          • $implies$ part is fine but does the other part has any other name other than saying as a prime definition? Because it is a key property for prime numbers, so I am guessing that some name should be there for that result.
            – hanugm
            Nov 22 '18 at 8:11










          • I want to see for its complete reference, so the name of the theorem would help me a lot.
            – hanugm
            Nov 22 '18 at 8:12










          • @hanugm It's such an immediate consequence of the definition of prime numbers, yet it's relatively specialised. I can't imagine that it has a name. Call the entire thing "Fermat's little theorem", and no one would bat an eye.
            – Arthur
            Nov 22 '18 at 8:16
















          1












          1








          1






          $Longrightarrow$ is Fermat's little theorem



          $Longleftarrow$ is the definition of prime: any $a<n$ is coprime to $n$, and therefore $n$ must be prime.






          share|cite|improve this answer












          $Longrightarrow$ is Fermat's little theorem



          $Longleftarrow$ is the definition of prime: any $a<n$ is coprime to $n$, and therefore $n$ must be prime.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Nov 22 '18 at 8:02









          ArthurArthur

          111k7106188




          111k7106188












          • Does the prime definition have any other name?
            – hanugm
            Nov 22 '18 at 8:06










          • @hanugm Why would you want another name?
            – Arthur
            Nov 22 '18 at 8:09










          • $implies$ part is fine but does the other part has any other name other than saying as a prime definition? Because it is a key property for prime numbers, so I am guessing that some name should be there for that result.
            – hanugm
            Nov 22 '18 at 8:11










          • I want to see for its complete reference, so the name of the theorem would help me a lot.
            – hanugm
            Nov 22 '18 at 8:12










          • @hanugm It's such an immediate consequence of the definition of prime numbers, yet it's relatively specialised. I can't imagine that it has a name. Call the entire thing "Fermat's little theorem", and no one would bat an eye.
            – Arthur
            Nov 22 '18 at 8:16




















          • Does the prime definition have any other name?
            – hanugm
            Nov 22 '18 at 8:06










          • @hanugm Why would you want another name?
            – Arthur
            Nov 22 '18 at 8:09










          • $implies$ part is fine but does the other part has any other name other than saying as a prime definition? Because it is a key property for prime numbers, so I am guessing that some name should be there for that result.
            – hanugm
            Nov 22 '18 at 8:11










          • I want to see for its complete reference, so the name of the theorem would help me a lot.
            – hanugm
            Nov 22 '18 at 8:12










          • @hanugm It's such an immediate consequence of the definition of prime numbers, yet it's relatively specialised. I can't imagine that it has a name. Call the entire thing "Fermat's little theorem", and no one would bat an eye.
            – Arthur
            Nov 22 '18 at 8:16


















          Does the prime definition have any other name?
          – hanugm
          Nov 22 '18 at 8:06




          Does the prime definition have any other name?
          – hanugm
          Nov 22 '18 at 8:06












          @hanugm Why would you want another name?
          – Arthur
          Nov 22 '18 at 8:09




          @hanugm Why would you want another name?
          – Arthur
          Nov 22 '18 at 8:09












          $implies$ part is fine but does the other part has any other name other than saying as a prime definition? Because it is a key property for prime numbers, so I am guessing that some name should be there for that result.
          – hanugm
          Nov 22 '18 at 8:11




          $implies$ part is fine but does the other part has any other name other than saying as a prime definition? Because it is a key property for prime numbers, so I am guessing that some name should be there for that result.
          – hanugm
          Nov 22 '18 at 8:11












          I want to see for its complete reference, so the name of the theorem would help me a lot.
          – hanugm
          Nov 22 '18 at 8:12




          I want to see for its complete reference, so the name of the theorem would help me a lot.
          – hanugm
          Nov 22 '18 at 8:12












          @hanugm It's such an immediate consequence of the definition of prime numbers, yet it's relatively specialised. I can't imagine that it has a name. Call the entire thing "Fermat's little theorem", and no one would bat an eye.
          – Arthur
          Nov 22 '18 at 8:16






          @hanugm It's such an immediate consequence of the definition of prime numbers, yet it's relatively specialised. I can't imagine that it has a name. Call the entire thing "Fermat's little theorem", and no one would bat an eye.
          – Arthur
          Nov 22 '18 at 8:16




















          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%2f3008859%2fname-of-the-theorem-used-for-testing-the-primality-of-a-number%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

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          Npm cannot find a required file even through it is in the searched directory