<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    apm
   </journal-id>
   <journal-title-group>
    <journal-title>
     Advances in Pure Mathematics
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2160-0368
   </issn>
   <issn publication-format="print">
    2160-0384
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/apm.2025.158025
   </article-id>
   <article-id pub-id-type="publisher-id">
    apm-144662
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Physics 
     </subject>
     <subject>
       Mathematics
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Analysis of Multiplication Tables by Sum, Difference and Product: A New Approach to Primality
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Gnouma Jérôme
      </surname>
      <given-names>
       Kadouno
      </given-names>
     </name>
    </contrib>
   </contrib-group> 
   <aff id="affnull">
    <addr-line>
     aDepartment of Civil Engineering, Gamal Abdel Nasser University of Conakry, Conakry, Guinea
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     08
    </day> 
    <month>
     08
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    15
   </volume> 
   <issue>
    08
   </issue>
   <fpage>
    505
   </fpage>
   <lpage>
    517
   </lpage>
   <history>
    <date date-type="received">
     <day>
      27,
     </day>
     <month>
      May
     </month>
     <year>
      2025
     </year>
    </date>
    <date date-type="published">
     <day>
      5,
     </day>
     <month>
      May
     </month>
     <year>
      2025
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      5,
     </day>
     <month>
      August
     </month>
     <year>
      2025
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    This paper systematically studies the properties of multiplication tables through three fundamental operations: 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
         Σ
        </mtext>
        <mi>
         T
        </mi>
       </mrow> 
      </menclose> 
     </mrow> 
    </math> , 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
         Δ
        </mtext>
        <mi>
         T
        </mi>
       </mrow> 
      </menclose> 
     </mrow> 
    </math> , 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
         Π
        </mtext>
        <mi>
         T
        </mi>
       </mrow> 
      </menclose> 
     </mrow> 
    </math> . We show how these operations reveal deep arithmetic structures, leading to an innovative primality test. A logarithmic version optimizes computations for very large numbers. Applications are proposed in algorithmic and mathematics education.
   </abstract>
   <kwd-group> 
    <kwd>
     Multiplication Tables
    </kwd> 
    <kwd>
      Sum
    </kwd> 
    <kwd>
      Difference
    </kwd> 
    <kwd>
      Product
    </kwd> 
    <kwd>
      Primality
    </kwd> 
    <kwd>
      Logarithm
    </kwd> 
    <kwd>
      Factorial
    </kwd> 
    <kwd>
      Primoriel
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>Multiplication tables are well known for their elementary role in mathematics education. But as structured numerical sequences, they offer rich, largely unexplored opportunities for mathematical analysis <xref ref-type="bibr" rid="scirp.144662-1">
     [1]
    </xref>. This paper lays the foundations of a tabular arithmetic based on three major operations:</p>
   <p>1) Sum 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
          Σ 
        </mtext> 
        <mi>
          T 
        </mi> 
       </mrow> 
      </menclose> 
     </mrow> 
    </math>: related to triangular numbers.</p>
   <p>2) Difference 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          T 
        </mi> 
       </mrow> 
      </menclose> 
     </mrow> 
    </math>: related to arithmetic sequences.</p>
   <p>3) Product 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
          Π 
        </mtext> 
        <mi>
          T 
        </mi> 
       </mrow> 
      </menclose> 
     </mrow> 
    </math>: used as a primality test.</p>
   <p>We formalize these operations and develop an original method for detecting prime numbers, adapted to large integers via a logarithmic version <xref ref-type="bibr" rid="scirp.144662-2">
     [2]
    </xref>.</p>
  </sec><sec id="s2">
   <title>2. Methodology</title>
   <sec id="s2_1">
    <title>
     <xref ref-type="bibr" rid="scirp.144662-"></xref>2.1. Definition 1—Multiplication Table</title>
    <p>For any integer 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <msup> 
        <mi>
          ℕ 
        </mi> 
        <mtext>
          * 
        </mtext> 
       </msup> 
      </mrow> 
     </math>, the multiplication table associated with 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math>, denoted 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math>, is defined by:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mi>
            n 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            a 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           a 
         </mi> 
         <mo>
           ⋅ 
         </mo> 
         <mi>
           n 
         </mi> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           for 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           all 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mi>
           a 
         </mi> 
         <mo>
           ∈ 
         </mo> 
         <msup> 
          <mi>
            ℕ 
          </mi> 
          <mtext>
            * 
          </mtext> 
         </msup> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
   <sec id="s2_2">
    <title>2.2. Step-by-Step Initialization of the Sum (

     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
       <mi>
        
   Σ
  
       </mi>
  
       <mi>
        
   T
  
       </mi>
 
      </mrow>

     </math>) and Difference (

     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
       <mi>
        
   Δ
  
       </mi>
  
       <mi>
        
   T
  
       </mi>
 
      </mrow>

     </math>) Operations</title>
    <p>For a fixed integer 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math>, generate the associated tables:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mi>
            a 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           a 
         </mi> 
         <mo>
           × 
         </mo> 
         <mi>
           n 
         </mi> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           for 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mi>
           a 
         </mi> 
         <mo>
           ∈ 
         </mo> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             2 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             3 
           </mn> 
           <mo>
             , 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
          </mrow> 
          <mo>
            } 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Example with 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
      </mrow> 
     </math>:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mn>
            4 
          </mn> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           4 
         </mn> 
         <mo>
           , 
         </mo> 
         <mtext>
             
         </mtext> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mn>
            4 
          </mn> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           8 
         </mn> 
         <mo>
           , 
         </mo> 
         <mtext>
             
         </mtext> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mn>
            3 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mn>
            4 
          </mn> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           12 
         </mn> 
         <mo>
           , 
         </mo> 
         <mtext>
             
         </mtext> 
         <mo>
           ⋯ 
         </mo> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
  </sec><sec id="s3">
   <title>3. Construction of the Tabular Sum (

    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
      <mi>
       
   Σ
  
      </mi>
  
      <mi>
       
   T
  
      </mi>
 
     </mrow>

    </math>)</title>
   <p>Objective: Add the first 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       k 
     </mi> 
    </math> values of the multiplication tables for 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       n 
     </mi> 
    </math>.</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
          Σ 
        </mtext> 
        <mi>
          T 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mi>
            k 
          </mi> 
          <mo>
            , 
          </mo> 
          <mi>
            n 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          = 
        </mo> 
        <msub> 
         <mi>
           T 
         </mi> 
         <mn>
           1 
         </mn> 
        </msub> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mi>
           n 
         </mi> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          + 
        </mo> 
        <msub> 
         <mi>
           T 
         </mi> 
         <mn>
           2 
         </mn> 
        </msub> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mi>
           n 
         </mi> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          + 
        </mo> 
        <mo>
          ⋯ 
        </mo> 
        <mo>
          + 
        </mo> 
        <msub> 
         <mi>
           T 
         </mi> 
         <mi>
           k 
         </mi> 
        </msub> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mi>
           n 
         </mi> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </menclose> 
     </mrow> 
    </math></p>
   <p>Example 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          n 
        </mi> 
        <mo>
          = 
        </mo> 
        <mn>
          4 
        </mn> 
        <mo>
          , 
        </mo> 
        <mi>
          k 
        </mi> 
        <mo>
          = 
        </mo> 
        <mn>
          3 
        </mn> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
          Σ 
        </mtext> 
        <mi>
          T 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mn>
            3 
          </mn> 
          <mo>
            , 
          </mo> 
          <mn>
            4 
          </mn> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          = 
        </mo> 
        <mn>
          4 
        </mn> 
        <mo>
          + 
        </mo> 
        <mn>
          8 
        </mn> 
        <mo>
          + 
        </mo> 
        <mn>
          12 
        </mn> 
        <mo>
          = 
        </mo> 
        <mn>
          24 
        </mn> 
       </mrow> 
      </menclose> 
     </mrow> 
    </math></p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
          Σ 
        </mtext> 
        <mi>
          T 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mi>
            k 
          </mi> 
          <mo>
            , 
          </mo> 
          <mi>
            n 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          = 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          × 
        </mo> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mn>
            1 
          </mn> 
          <mo>
            + 
          </mo> 
          <mn>
            2 
          </mn> 
          <mo>
            + 
          </mo> 
          <mo>
            ⋯ 
          </mo> 
          <mo>
            + 
          </mo> 
          <mi>
            k 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          = 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          × 
        </mo> 
        <mfrac> 
         <mrow> 
          <mi>
            k 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mi>
              k 
            </mi> 
            <mo>
              + 
            </mo> 
            <mn>
              1 
            </mn> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
       </mrow> 
      </menclose> 
     </mrow> 
    </math></p>
   <p>Verification:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <menclose notation="box"> 
       <mrow> 
        <mtext>
          Σ 
        </mtext> 
        <mi>
          T 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mn>
            3 
          </mn> 
          <mo>
            , 
          </mo> 
          <mn>
            4 
          </mn> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          = 
        </mo> 
        <mn>
          4 
        </mn> 
        <mo>
          × 
        </mo> 
        <mfrac> 
         <mrow> 
          <mn>
            3 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            4 
          </mn> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
        <mo>
          = 
        </mo> 
        <mn>
          4 
        </mn> 
        <mo>
          × 
        </mo> 
        <mn>
          6 
        </mn> 
        <mo>
          = 
        </mo> 
        <mn>
          24 
        </mn> 
       </mrow> 
      </menclose> 
     </mrow> 
    </math></p>
  </sec><sec id="s4">
   <title>4. Construction of the Tabular Difference (

    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
      <mi>
       
   Δ
  
      </mi>
  
      <mi>
       
   T
  
      </mi>
 
     </mrow>

    </math>)</title>
   <sec id="s4_1">
    <title>4.1. Lemma 1 (Tabular Difference Formula)</title>
    <p>For 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         a 
       </mi> 
       <mo>
         , 
       </mo> 
       <mi>
         b 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <mi>
         ℕ 
       </mi> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         b 
       </mi> 
       <mo>
         &gt; 
       </mo> 
       <mi>
         a 
       </mi> 
      </mrow> 
     </math>, and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <msup> 
        <mi>
          ℕ 
        </mi> 
        <mtext>
          * 
        </mtext> 
       </msup> 
      </mrow> 
     </math>, the difference between rows 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        a 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        b 
      </mi> 
     </math> of the table 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math> is given by:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          T 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           a 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           b 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           b 
         </mi> 
         <mo>
           − 
         </mo> 
         <mi>
           a 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ⋅ 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math></p>
    <p>Objective: Compute the gap between two terms 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          a 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          b 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> of the same table.</p>
    <p>Step 1: Choice of Indices 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         a 
       </mi> 
       <mo>
         , 
       </mo> 
       <mi>
         b 
       </mi> 
      </mrow> 
     </math> (with 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         b 
       </mi> 
       <mo>
         &gt; 
       </mo> 
       <mi>
         a 
       </mi> 
      </mrow> 
     </math>)</p>
    <p>Step 2: Direct Computation</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             a 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             b 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mi>
            b 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mi>
            a 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Example 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           5 
         </mn> 
         <mo>
           , 
         </mo> 
         <mi>
           a 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           2 
         </mn> 
         <mo>
           , 
         </mo> 
         <mi>
           b 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           4 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             2 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             4 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             5 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           20 
         </mn> 
         <mo>
           − 
         </mo> 
         <mn>
           10 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Step 3: Factorization</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             a 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             b 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             b 
           </mi> 
           <mo>
             − 
           </mo> 
           <mi>
             a 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Verification:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             4 
           </mn> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <mn>
           5 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
   <sec id="s4_2">
    <title>4.2. Concrete Applications</title>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Σ 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             10 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             3 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           3 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           55 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           165 
         </mn> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             55 
           </mn> 
           <mo>
             = 
           </mo> 
           <mfrac> 
            <mrow> 
             <mn>
               10 
             </mn> 
             <mo>
               × 
             </mo> 
             <mn>
               11 
             </mn> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </mfrac> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             3 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             5 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             7 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             5 
           </mn> 
           <mo>
             − 
           </mo> 
           <mn>
             3 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <mn>
           7 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           14 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>These simple formulas reveal the fundamental arithmetic structure of multiplication tables, with essential pedagogical and algorithmic applications.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mtable columnalign="left"> 
         <mtr> 
          <mtd> 
           <mtext>
             Tabular Sum 
           </mtext> 
           <mo>
             : 
           </mo> 
           <mtext>
             Σ 
           </mtext> 
           <mi>
             T 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               k 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               n 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mi>
             n 
           </mi> 
           <mo>
             ⋅ 
           </mo> 
           <mfrac> 
            <mrow> 
             <mi>
               k 
             </mi> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <mi>
                 k 
               </mi> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </mfrac> 
           <mo>
             , 
           </mo> 
          </mtd> 
         </mtr> 
         <mtr> 
          <mtd> 
           <mtext>
             Tabular Difference 
           </mtext> 
           <mo>
             : 
           </mo> 
           <mtext>
             Δ 
           </mtext> 
           <mi>
             T 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               a 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               b 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               n 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               b 
             </mi> 
             <mo>
               − 
             </mo> 
             <mi>
               a 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             ⋅ 
           </mo> 
           <mi>
             n 
           </mi> 
           <mo>
             . 
           </mo> 
          </mtd> 
         </mtr> 
        </mtable> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
  </sec><sec id="s5">
   <title>5. Step-by-Step Construction of the Tabular Product 

    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
      <mi>
       
   Π
  
      </mi>
  
      <mi>
       
   T
  
      </mi>
  
      <mrow>
   
       <mo>
        
    (
   
       </mo> 
   
       <mrow> 
    
        <mi>
         
     k
    
        </mi>
    
        <mo>
         
     ,
    
        </mo>
    
        <mi>
         
     n
    
        </mi>
   
       </mrow> 
   
       <mo>
        
    )
   
       </mo>
  
      </mrow>
 
     </mrow>

    </math></title>
   <sec id="s5_1">
    <title>5.1. Theorem 1 (Tabular Product Formula)</title>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <msup> 
        <mi>
          ℕ 
        </mi> 
        <mtext>
          * 
        </mtext> 
       </msup> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <msup> 
        <mi>
          ℕ 
        </mi> 
        <mtext>
          * 
        </mtext> 
       </msup> 
      </mrow> 
     </math>.</p>
    <p>The product of the first 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        k 
      </mi> 
     </math> terms of the multiplication table of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is given by:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mtext>
          Π 
        </mtext> 
        <mi>
          T 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <munderover> 
        <mstyle mathsize="140%" displaystyle="true"> 
         <mo>
           ∏ 
         </mo> 
        </mstyle> 
        <mrow> 
         <mi>
           a 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mi>
          k 
        </mi> 
       </munderover> 
       <mtext>
           
       </mtext> 
       <mi>
         a 
       </mi> 
       <mo>
         ⋅ 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mo>
         ⋅ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mo>
         ! 
       </mo> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math></p>
   </sec>
   <sec id="s5_2">
    <title>5.2. Definition of the Multiplication Tables</title>
    <p>Recall: Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> be a fixed integer. For each integer 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        a 
      </mi> 
     </math> such that 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         1 
       </mn> 
       <mo>
         ≤ 
       </mo> 
       <mi>
         a 
       </mi> 
       <mo>
         ≤ 
       </mo> 
       <mi>
         k 
       </mi> 
      </mrow> 
     </math>, we define the row 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          a 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> by:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mi>
            a 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           a 
         </mi> 
         <mo>
           × 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>In other words, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          a 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> is the product of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> by 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        a 
      </mi> 
     </math>, which is the 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        a 
      </mi> 
     </math>-th row of the multiplication table of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math>.</p>
   </sec>
   <sec id="s5_3">
    <title>5.3. Construction of the Tabular Product</title>
    <p>We are interested in the product of the first 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        k 
      </mi> 
     </math> rows, that is:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mstyle displaystyle="true"> 
          <msubsup> 
           <mo>
             ∏ 
           </mo> 
           <mrow> 
            <mi>
              a 
            </mi> 
            <mo>
              = 
            </mo> 
            <mn>
              1 
            </mn> 
           </mrow> 
           <mi>
             k 
           </mi> 
          </msubsup> 
          <mrow> 
           <msub> 
            <mi>
              T 
            </mi> 
            <mi>
              a 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </mstyle> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <mo>
           ⋯ 
         </mo> 
         <mo>
           × 
         </mo> 
         <msub> 
          <mi>
            T 
          </mi> 
          <mi>
            k 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Substituting 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          a 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mi>
         a 
       </mi> 
       <mo>
         × 
       </mo> 
       <mi>
         n 
       </mi> 
      </mrow> 
     </math> gives:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             × 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             2 
           </mn> 
           <mo>
             × 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <mo>
           ⋯ 
         </mo> 
         <mo>
           × 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             × 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
   <sec id="s5_4">
    <title>5.4. Factorization of the Product</title>
    <p>Group the terms:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             × 
           </mo> 
           <mn>
             2 
           </mn> 
           <mo>
             × 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             × 
           </mo> 
           <mi>
             k 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             n 
           </mi> 
           <mo>
             × 
           </mo> 
           <mi>
             n 
           </mi> 
           <mo>
             × 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             × 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> appears 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        k 
      </mi> 
     </math> times. Thus:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             1 
           </mn> 
           <mo>
             × 
           </mo> 
           <mn>
             2 
           </mn> 
           <mo>
             × 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             × 
           </mo> 
           <mi>
             k 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           × 
         </mo> 
         <msup> 
          <mi>
            n 
          </mi> 
          <mi>
            k 
          </mi> 
         </msup> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
   <sec id="s5_5">
    <title>5.5. Standard Notation</title>
    <p>The product of the integers from 1 to 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        k 
      </mi> 
     </math> is by definition the factorial 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         ! 
       </mo> 
      </mrow> 
     </math>. Therefore:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           ! 
         </mo> 
         <mtext>
             
         </mtext> 
         <mo>
           × 
         </mo> 
         <msup> 
          <mi>
            n 
          </mi> 
          <mi>
            k 
          </mi> 
         </msup> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>The general formula for the tabular product is:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <msup> 
          <mi>
            n 
          </mi> 
          <mi>
            k 
          </mi> 
         </msup> 
         <mo>
           ⋅ 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           ! 
         </mo> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
   <sec id="s5_6">
    <title>5.6. Illustrative Example</title>
    <p>Take 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math>:</p>
    <p>Direct product:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mn>
           4 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           8 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           12 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           384 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Formula:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <msup> 
          <mn>
            4 
          </mn> 
          <mn>
            3 
          </mn> 
         </msup> 
         <mo>
           × 
         </mo> 
         <mn>
           3 
         </mn> 
         <mo>
           ! 
         </mo> 
         <mo>
           = 
         </mo> 
         <mn>
           64 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           6 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           384 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Theorem 2 (Tabular Sum Formula)</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <msup> 
        <mi>
          ℕ 
        </mi> 
        <mtext>
          * 
        </mtext> 
       </msup> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <msup> 
        <mi>
          ℕ 
        </mi> 
        <mtext>
          * 
        </mtext> 
       </msup> 
      </mrow> 
     </math>.</p>
    <p>The sum of the first 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        k 
      </mi> 
     </math> terms of the table 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          T 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math> is given by:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mtext>
          Σ 
        </mtext> 
        <mi>
          T 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         ⋅ 
       </mo> 
       <mfrac> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </mfrac> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math></p>
   </sec>
  </sec><sec id="s6">
   <title>6. Primality Test via Tabular Product</title>
   <sec id="s6_1">
    <title>6.1. Theorem 3 (Factorial Tabular Product Primality Test)</title>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <mi>
         ℕ 
       </mi> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>, and let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
      </mrow> 
     </math>. If:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mtext>
          Π 
        </mtext> 
        <mi>
          T 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≡ 
       </mo> 
       <mn>
         0 
       </mn> 
       <mtext>
           
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           mod 
         </mi> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         and 
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           ! 
         </mo> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math></p>
    <p>then 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is prime <xref ref-type="bibr" rid="scirp.144662-3">
      [3]
     </xref> <xref ref-type="bibr" rid="scirp.144662-4">
      [4]
     </xref>.</p>
   </sec>
   <sec id="s6_2">
    <title>6.2. Classical Version</title>
    <p>Basic algorithm:</p>
    <p>1) Set 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
      </mrow> 
     </math>.</p>
    <p>2) Compute:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <msup> 
          <mi>
            n 
          </mi> 
          <mi>
            k 
          </mi> 
         </msup> 
         <mo>
           ⋅ 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           ! 
         </mo> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>3) Check the conditions:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ≡ 
         </mo> 
         <mn>
           0 
         </mn> 
         <mtext>
             
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             mod 
           </mi> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           and 
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mtext>
           gcd 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             ! 
           </mo> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>4) If both are true, then 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is likely prime.</p>
    <p>Kadouno Primality Tests for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         89 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         991 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         99989 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         88888 
       </mn> 
      </mrow> 
     </math></p>
    <p>1) Test for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         8 
       </mn> 
       <mn>
         9 
       </mn> 
      </mrow> 
     </math> (Prime)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             9 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             89 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <msup> 
          <mrow> 
           <mn>
             89 
           </mn> 
          </mrow> 
          <mn>
            9 
          </mn> 
         </msup> 
         <mo>
           ⋅ 
         </mo> 
         <mn>
           9 
         </mn> 
         <mo>
           ! 
         </mo> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>a) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           9 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           89 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≡ 
       </mo> 
       <mn>
         0 
       </mn> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           mod 
         </mi> 
         <mn>
           89 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (✓)</p>
    <p>b) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           9 
         </mn> 
         <mo>
           ! 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           89 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> (✓)</p>
    <p>2) Test for 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         9 
       </mn> 
       <mn>
         9 
       </mn> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> (Prime)</p>
    <p>Step 1: 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         31 
       </mn> 
      </mrow> 
     </math>.</p>
    <p>Step 2: Verify</p>
    <p>a) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           31 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           991 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≡ 
       </mo> 
       <mn>
         0 
       </mn> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           mod 
         </mi> 
         <mn>
           991 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (✓)</p>
    <p>b) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           31 
         </mn> 
         <mo>
           ! 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           991 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> (✓)</p>
    <p>3) Test for 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         9 
       </mn> 
       <mn>
         9 
       </mn> 
       <mn>
         9 
       </mn> 
       <mn>
         8 
       </mn> 
       <mn>
         9 
       </mn> 
      </mrow> 
     </math> (Prime)</p>
    <p>a) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           316 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           99989 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≡ 
       </mo> 
       <mn>
         0 
       </mn> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           mod 
         </mi> 
         <mn>
           99989 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (✓)</p>
    <p>b) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           316 
         </mn> 
         <mo>
           ! 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           99989 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> (✓)</p>
    <p>4) Test for 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         8 
       </mn> 
       <mn>
         8 
       </mn> 
       <mn>
         8 
       </mn> 
       <mn>
         8 
       </mn> 
       <mn>
         8 
       </mn> 
      </mrow> 
     </math> (Composite)</p>
    <p>a) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           298 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           88888 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≡ 
       </mo> 
       <mn>
         0 
       </mn> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           mod 
         </mi> 
         <mn>
           88888 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (✓)</p>
    <p>b) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           298 
         </mn> 
         <mo>
           ! 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           88888 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≥ 
       </mo> 
       <mn>
         41 
       </mn> 
      </mrow> 
     </math> (×)</p>
   </sec>
   <sec id="s6_3">
    <title>6.3. Key Explanations</title>
    <p>1) Condition 1 is always true since 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
      </mrow> 
     </math> divides 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>.</p>
    <p>2) Condition 2 distinguishes primes ( 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>) from composites ( 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>).</p>
   </sec>
  </sec><sec id="s7">
   <title>7. Logarithmic Optimization of the Kadouno Test for Large Primes</title>
   <sec id="s7_1">
    <title>7.1. Principle</title>
    <p>To avoid direct computation of</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mo>
         ⋅ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mo>
         ! 
       </mo> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math></p>
    <p>which becomes intractable for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ≥ 
       </mo> 
       <msup> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
        <mn>
          6 
        </mn> 
       </msup> 
      </mrow> 
     </math>, we use a logarithmic approximation:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           log 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             Π 
           </mi> 
           <mi>
             T 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               k 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               n 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           k 
         </mi> 
         <mi>
           log 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           + 
         </mo> 
         <mi>
           log 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             ! 
           </mo> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           . 
         </mo> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>The test then checks:</p>
    <p>1) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         | 
       </mo> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mi>
         k 
       </mi> 
       <mo>
         ! 
       </mo> 
      </mrow> 
     </math> (via modulo),</p>
    <p>2) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           ! 
         </mo> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>.</p>
    <p>1) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         1000003 
       </mn> 
      </mrow> 
     </math> (prime)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1000 
       </mn> 
      </mrow> 
     </math>.</p>
    <p>Stirling’s approximation for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ! 
       </mo> 
      </mrow> 
     </math>:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ! 
       </mo> 
       <mo>
         ≈ 
       </mo> 
       <msqrt> 
        <mrow> 
         <mn>
           2 
         </mn> 
         <mi>
           π 
         </mi> 
         <mi>
           n 
         </mi> 
        </mrow> 
       </msqrt> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mfrac> 
            <mi>
              n 
            </mi> 
            <mi>
              e 
            </mi> 
           </mfrac> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msup> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           ! 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mi>
         n 
       </mi> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         − 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         + 
       </mo> 
       <mfrac> 
        <mn>
          1 
        </mn> 
        <mn>
          2 
        </mn> 
       </mfrac> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           2 
         </mn> 
         <mi>
           π 
         </mi> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math></p>
    <p>Numerical values:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           1000 
         </mn> 
         <mo>
           ! 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         5912.13 
       </mn> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         13.8155. 
       </mn> 
      </mrow> 
     </math></p>
    <p>Compute</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           L 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           1000 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           13.8155 
         </mn> 
         <mo>
           + 
         </mo> 
         <mn>
           5912.13 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           19727.63. 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Since 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
      </mrow> 
     </math> dominates 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         ! 
       </mo> 
      </mrow> 
     </math>, we have 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         | 
       </mo> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mi>
         k 
       </mi> 
       <mo>
         ! 
       </mo> 
      </mrow> 
     </math> (✓). And because 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is prime and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         &gt; 
       </mo> 
       <mi>
         k 
       </mi> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           ! 
         </mo> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> (✓).</p>
    <p>Conclusion: 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is prime.</p>
    <p>2) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         15485863 
       </mn> 
      </mrow> 
     </math> (prime)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3935 
       </mn> 
      </mrow> 
     </math>.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           3935 
         </mn> 
         <mo>
           ! 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         26860.4 
       </mn> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         log 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         16.605. 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           L 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           3935 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           16.605 
         </mn> 
         <mo>
           + 
         </mo> 
         <mn>
           26860.4 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           92191.1. 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Both conditions hold as above (✓).</p>
    <p>Conclusion: 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is prime.</p>
    <p>3) 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         999999000001 
       </mn> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msup> 
          <mrow> 
           <mn>
             10 
           </mn> 
          </mrow> 
          <mn>
            6 
          </mn> 
         </msup> 
         <mo>
           + 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msup> 
          <mrow> 
           <mn>
             10 
           </mn> 
          </mrow> 
          <mn>
            6 
          </mn> 
         </msup> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> (composite)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         999999 
       </mn> 
      </mrow> 
     </math>.</p>
    <p>Condition 1 is always true.</p>
    <p>Condition 2:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           gcd 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             999999 
           </mn> 
           <mo>
             ! 
           </mo> 
           <mo>
             , 
           </mo> 
           <mi>
             n 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ≥ 
         </mo> 
         <mn>
           999999 
         </mn> 
         <mo>
           ≠ 
         </mo> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>since 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         999999 
       </mn> 
       <mo>
         | 
       </mo> 
       <mi>
         n 
       </mi> 
      </mrow> 
     </math>.</p>
    <p>Conclusion: 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is composite.</p>
   </sec>
   <sec id="s7_2">
    <title>7.2. Why Use the Logarithmic Approach?</title>
   </sec>
  </sec><sec id="s8">
   <title>8. Kadouno—Log Test with Dynamic Threshold</title>
   <p>We define a decimal–scale regulation function 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        C 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> to adapt the test depth dynamically according to the size of the integer.</p>
   <sec id="s8_1">
    <title>8.1. Definition</title>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           C 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           3 
         </mn> 
         <mo>
           + 
         </mo> 
         <mrow> 
          <mo>
            ⌊ 
          </mo> 
          <mrow> 
           <mfrac> 
            <mrow> 
             <msub> 
              <mrow> 
               <mi>
                 log 
               </mi> 
              </mrow> 
              <mrow> 
               <mn>
                 10 
               </mn> 
              </mrow> 
             </msub> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mi>
                n 
              </mi> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mn>
              3 
            </mn> 
           </mfrac> 
          </mrow> 
          <mo>
            ⌋ 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> is the base—10 logarithm of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mo>
          ⋅ 
        </mo> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
      </mrow> 
     </math> the floor function.</p>
   </sec>
   <sec id="s8_2">
    <title>8.2. Interpretation</title>
    <p>- If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         1 
       </mn> 
       <mo>
         ≤ 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         &lt; 
       </mo> 
       <msup> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
        <mn>
          3 
        </mn> 
       </msup> 
      </mrow> 
     </math>, then 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math>.</p>
    <p>- If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
        <mn>
          3 
        </mn> 
       </msup> 
       <mo>
         ≤ 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         &lt; 
       </mo> 
       <msup> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
        <mn>
          6 
        </mn> 
       </msup> 
      </mrow> 
     </math>, then 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
      </mrow> 
     </math>.</p>
    <p>- If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
        <mn>
          6 
        </mn> 
       </msup> 
       <mo>
         ≤ 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         &lt; 
       </mo> 
       <msup> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
        <mn>
          9 
        </mn> 
       </msup> 
      </mrow> 
     </math>, then 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         5 
       </mn> 
      </mrow> 
     </math>, etc.</p>
    <p>The test parameter is defined by</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ⌊ 
          </mo> 
          <mrow> 
           <mi>
             C 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <msub> 
            <mrow> 
             <mi>
               log 
             </mi> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ⌋ 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> is the base-2 logarithm of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math>.</p>
   </sec>
   <sec id="s8_3">
    <title>8.3. Advantages</title>
   </sec>
   <sec id="s8_4">
    <title>8.4. Numerical Examples</title>
    <p>This adaptive scaling makes the Kadouno-Log test especially efficient over wide integer ranges, maintaining constant accuracy with cost adjusted to the number’s size.</p>
    <p>Step 1: Compute 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           101 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msub> 
            <mrow> 
             <mtext>
               log 
             </mtext> 
            </mrow> 
            <mrow> 
             <mn>
               10 
             </mn> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mn>
               101 
             </mn> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            3 
          </mn> 
         </mfrac> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           0.668 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math></p>
    <p>Step 2: Compute 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           101 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           3 
         </mn> 
         <mo>
           × 
         </mo> 
         <msub> 
          <mrow> 
           <mtext>
             log 
           </mtext> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             101 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           3 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           6.658 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         19 
       </mn> 
      </mrow> 
     </math></p>
    <p>Step 3: Verify the Conditions</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             19 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             101 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ≡ 
         </mo> 
         <mn>
           0 
         </mn> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             mod 
           </mi> 
           <mn>
             101 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           gcd 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             19 
           </mn> 
           <mo>
             ! 
           </mo> 
           <mo>
             , 
           </mo> 
           <mn>
             101 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Conclusion</p>
    <p>101 is prime.</p>
    <p>Step 1: Compute 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           10007 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msub> 
            <mrow> 
             <mtext>
               log 
             </mtext> 
            </mrow> 
            <mrow> 
             <mn>
               10 
             </mn> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mn>
               10007 
             </mn> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            3 
          </mn> 
         </mfrac> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           1.3334 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
      </mrow> 
     </math></p>
    <p>Step 2: Compute 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           10007 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           4 
         </mn> 
         <mo>
           × 
         </mo> 
         <msub> 
          <mrow> 
           <mtext>
             log 
           </mtext> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             10007 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           4 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           13.288 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         53 
       </mn> 
      </mrow> 
     </math></p>
    <p>Step 3: Verify the Conditions</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           Π 
         </mtext> 
         <mi>
           T 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             53 
           </mn> 
           <mo>
             , 
           </mo> 
           <mn>
             10007 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ≡ 
         </mo> 
         <mn>
           0 
         </mn> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             mod 
           </mi> 
           <mn>
             10007 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mtext>
           gcd 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mn>
             53 
           </mn> 
           <mo>
             ! 
           </mo> 
           <mo>
             , 
           </mo> 
           <mn>
             10007 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>Conclusion</p>
    <p>10007 is prime.</p>
   </sec>
   <sec id="s8_5">
    <title>8.5. Summary of Results</title>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td custom-top-td acenter" width="14.85%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
           n 
         </mi> 
        </math></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="14.85%"><p style="text-align:center">Range</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="14.85%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mi>
            C 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mi>
             n 
           </mi> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="14.86%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mi>
            k 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mi>
             n 
           </mi> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="23.92%"><p style="text-align:center">Conditions met</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="16.67%"><p style="text-align:center">Conclusion</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="14.85%"><p style="text-align:center">101</p></td> 
      <td class="custom-top-td acenter" width="14.85%"><p style="text-align:center">10<sup>2</sup></p></td> 
      <td class="custom-top-td acenter" width="14.85%"><p style="text-align:center">3</p></td> 
      <td class="custom-top-td acenter" width="14.86%"><p style="text-align:center">19</p></td> 
      <td class="custom-top-td acenter" width="23.92%"><p style="text-align:center">✓✓</p></td> 
      <td class="custom-top-td acenter" width="16.67%"><p style="text-align:center">Prime</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="14.85%"><p style="text-align:center">10007</p></td> 
      <td class="acenter" width="14.85%"><p style="text-align:center">10<sup>4</sup></p></td> 
      <td class="acenter" width="14.85%"><p style="text-align:center">4</p></td> 
      <td class="acenter" width="14.86%"><p style="text-align:center">53</p></td> 
      <td class="acenter" width="23.92%"><p style="text-align:center">✓✓</p></td> 
      <td class="acenter" width="16.67%"><p style="text-align:center">Prime</p></td> 
     </tr> 
     <tr> 
      <td class="custom-bottom-td acenter" width="14.85%"><p style="text-align:center">1000003</p></td> 
      <td class="custom-bottom-td acenter" width="14.85%"><p style="text-align:center">10<sup>6</sup></p></td> 
      <td class="custom-bottom-td acenter" width="14.85%"><p style="text-align:center">5</p></td> 
      <td class="custom-bottom-td acenter" width="14.86%"><p style="text-align:center">99</p></td> 
      <td class="custom-bottom-td acenter" width="23.92%"><p style="text-align:center">✓✓</p></td> 
      <td class="custom-bottom-td acenter" width="16.67%"><p style="text-align:center">Prime</p></td> 
     </tr> 
    </table>
   </sec>
   <sec id="s8_6">
    <title>8.6. Key Insights</title>
    <p>1) Adaptability of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>:</p>
    <p>- 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> automatically adjusts the depth of the test according to the order of magnitude of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math>.</p>
    <p>- Example: For 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         1000003 
       </mn> 
      </mrow> 
     </math> (10<sup>6</sup>),</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           C 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           5 
         </mn> 
         <mo>
           , 
         </mo> 
         <mtext>
             
         </mtext> 
         <mtext>
             
         </mtext> 
         <mi>
           k 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           99. 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>2) Efficiency:</p>
    <p>- The dynamic threshold</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ⌊ 
          </mo> 
          <mrow> 
           <mi>
             C 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo> 
           </mo> 
           <msub> 
            <mrow> 
             <mtext>
               log 
             </mtext> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ⌋ 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>balances precision and computational cost.</p>
    <p>- Example:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mrow> 
          <mo>
            ⌊ 
          </mo> 
          <mrow> 
           <msub> 
            <mrow> 
             <mtext>
               log 
             </mtext> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mn>
               1000003 
             </mn> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ⌋ 
          </mo> 
         </mrow> 
         <mo>
           ≈ 
         </mo> 
         <mn>
           19.93 
         </mn> 
         <mtext>
             
         </mtext> 
         <mo>
           ⇒ 
         </mo> 
         <mtext>
             
         </mtext> 
         <mi>
           k 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mn>
           99 
         </mn> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>(sufficient to capture small factors).</p>
    <p>3) Robustness:</p>
    <p>- Correctly detects primes even for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ≥ 
       </mo> 
       <msup> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
        <mn>
          6 
        </mn> 
       </msup> 
      </mrow> 
     </math>.</p>
   </sec>
   <sec id="s8_7">
    <title>8.7. Why These Examples?</title>
   </sec>
   <sec id="s8_8">
    <title>8.8. Key Formula to Remember:</title>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ⌊ 
          </mo> 
          <mrow> 
           <mi>
             C 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             ⋅ 
           </mo> 
           <msub> 
            <mrow> 
             <mtext>
               log 
             </mtext> 
            </mrow> 
            <mn>
              2 
            </mn> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ⌋ 
          </mo> 
         </mrow> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
   </sec>
  </sec><sec id="s9">
   <title>9. Primorial Test</title>
   <sec id="s9_1">
    <title>9.1. Primorial Version of the Tabular Product</title>
    <p>We replace the factorial tabular product:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         : 
       </mo> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mo>
         ⋅ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mo>
         ! 
       </mo> 
      </mrow> 
     </math></p>
    <p>by its finer version:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Π 
       </mtext> 
       <mi>
         T 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         : 
       </mo> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          n 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mo>
         ⋅ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mo>
         # 
       </mo> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         where 
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         k 
       </mi> 
       <mo>
         # 
       </mo> 
       <mo>
         : 
       </mo> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <munder> 
         <mo>
           ∏ 
         </mo> 
         <mtable> 
          <mtr> 
           <mtd> 
            <mrow> 
             <mi>
               p 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mi>
               k 
             </mi> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr> 
           <mtd> 
            <mrow> 
             <mi>
               p 
             </mi> 
             <mo>
               ∈ 
             </mo> 
             <mi>
               ℙ 
             </mi> 
            </mrow> 
           </mtd> 
          </mtr> 
         </mtable> 
        </munder> 
        <mi>
          p 
        </mi> 
       </mstyle> 
      </mrow> 
     </math></p>
    <p>The primorial eliminates factorial redundancies, retaining only prime factors.</p>
    <p>Theorem 4 Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ∈ 
       </mo> 
       <msup> 
        <mi>
          ℕ 
        </mi> 
        <mtext>
          * 
        </mtext> 
       </msup> 
       <mo>
         , 
       </mo> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
      </mrow> 
     </math>. Then:</p>
   </sec>
   <sec id="s9_2">
    <title>9.2. Logarithmic Optimization of the Primorial Test</title>
    <p>Definition—Decimal regulation function:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         : 
       </mo> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         + 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msub> 
            <mrow> 
             <mtext>
               log 
             </mtext> 
            </mrow> 
            <mrow> 
             <mn>
               10 
             </mn> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              n 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            3 
          </mn> 
         </mfrac> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>Definition—Adaptive test depth:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         : 
       </mo> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mi>
           C 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ⋅ 
         </mo> 
         <msub> 
          <mrow> 
           <mtext>
             log 
           </mtext> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>This choice regulates the depth 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> while ensuring coverage of critical prime factors.</p>
    <p>Test steps:</p>
    <p>1) Compute 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>2) Build 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <msub> 
         <mo>
           ∏ 
         </mo> 
         <mrow> 
          <mi>
            p 
          </mi> 
          <mo>
            ≤ 
          </mo> 
          <mi>
            k 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mi>
             n 
           </mi> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </msub> 
        <mi>
          p 
        </mi> 
       </mstyle> 
      </mrow> 
     </math></p>
    <p>3) Evaluate 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           # 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>4) Conclusion:</p>
    <p>- If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is composite</p>
    <p>- If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is prime</p>
    <p>Example 1—Small Prime Integer</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         101 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           101 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         2.00 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           101 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         6.658 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           3 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           6.658 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         19 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ℙ 
        </mi> 
        <mrow> 
         <mo>
           ≤ 
         </mo> 
         <mn>
           19 
         </mn> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mn>
           2 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           3 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           5 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           7 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           11 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           13 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           17 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           19 
         </mn> 
        </mrow> 
        <mo>
          } 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         K 
       </mi> 
       <mtext>
         # 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mn>
         9699690 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           101 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           9699690 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
      </mrow> 
     </math> Prime validated</p>
    <p>Example 2—Small Composite Integer</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         105 
       </mn> 
      </mrow> 
     </math></p>
    <p>Same 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         19 
       </mn> 
      </mrow> 
     </math>, same primorial</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         105 
       </mn> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         × 
       </mo> 
       <mn>
         5 
       </mn> 
       <mo>
         × 
       </mo> 
       <mn>
         7 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           105 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           9699690 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         105 
       </mn> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
      </mrow> 
     </math> Composite detected</p>
    <p>Example 3—Carmichael Number</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         561 
       </mn> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         × 
       </mo> 
       <mn>
         11 
       </mn> 
       <mo>
         × 
       </mo> 
       <mn>
         17 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           561 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         2.75 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           561 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         9.13 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           3 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           9.13 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         27 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         27 
       </mn> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <msub> 
         <mo>
           ∏ 
         </mo> 
         <mrow> 
          <mi>
            p 
          </mi> 
          <mo>
            ≤ 
          </mo> 
          <mn>
            27 
          </mn> 
         </mrow> 
        </msub> 
        <mi>
          p 
        </mi> 
       </mstyle> 
       <mo>
         = 
       </mo> 
       <mn>
         2 
       </mn> 
       <mo>
         × 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         × 
       </mo> 
       <mo>
         ⋯ 
       </mo> 
       <mo>
         × 
       </mo> 
       <mn>
         23 
       </mn> 
       <mo>
         × 
       </mo> 
       <mn>
         29 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           561 
         </mn> 
         <mo>
           , 
         </mo> 
         <mn>
           27 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≥ 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
      </mrow> 
     </math> Carmichael rejected</p>
    <p>Example 4—Medium Prime Number</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         10007 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         4.00 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         4 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         13.28 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           4 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           13.28 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         53 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           k 
         </mi> 
         <mo>
           # 
         </mo> 
         <mo>
           , 
         </mo> 
         <mn>
           10007 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
      </mrow> 
     </math> Prime confirmed</p>
    <p>Example 5—Very Large Composite Integer</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         999999000001 
       </mn> 
      </mrow> 
     </math> (composite, e.g. 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         101 
       </mn> 
       <mo>
         × 
       </mo> 
       <mn>
         9901001 
       </mn> 
      </mrow> 
     </math>)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         12.0 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         7 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         39.863 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           7 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           39.863 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         279 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           , 
         </mo> 
         <mn>
           279 
         </mn> 
         <mo>
           # 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≥ 
       </mo> 
       <mn>
         101 
       </mn> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
      </mrow> 
     </math> Composite detected</p>
    <p>Example 6 — Very Large Prime Integer</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         1000003 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mrow> 
         <mn>
           10 
         </mn> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         6.0 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         5 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         19.93 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           5 
         </mn> 
         <mo>
           × 
         </mo> 
         <mn>
           19.93 
         </mn> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         99 
       </mn> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mn>
           99 
         </mn> 
         <mo>
           # 
         </mo> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         ⇒ 
       </mo> 
      </mrow> 
     </math> Prime confirmed</p>
   </sec>
   <sec id="s9_3">
    <title>9.3. Primorial Detection of Carmichael Numbers</title>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        C 
      </mi> 
     </math> be a Carmichael number. Set:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            C 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <munder> 
         <mo>
           ∏ 
         </mo> 
         <mrow> 
          <mi>
            p 
          </mi> 
          <mo>
            ≤ 
          </mo> 
          <mi>
            k 
          </mi> 
         </mrow> 
        </munder> 
        <mi>
          p 
        </mi> 
       </mstyle> 
      </mrow> 
     </math></p>
    <p>Then:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           C 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           # 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math></p>
    <p>The primorial test therefore rejects all Carmichael numbers <xref ref-type="bibr" rid="scirp.144662-5">
      [5]
     </xref>.</p>
    <p>By Korselt’s criterion, any Carmichael 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         ⋯ 
       </mo> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mi>
          r 
        </mi> 
       </msub> 
      </mrow> 
     </math>, with 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         r 
       </mi> 
       <mo>
         ≥ 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math>, square-free.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mo>
         &gt; 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msqrt> 
            <mi>
              C 
            </mi> 
           </msqrt> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mi>
          r 
        </mi> 
       </msup> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mrow> 
          <mi>
            r 
          </mi> 
          <mo>
            / 
          </mo> 
          <mn>
            2 
          </mn> 
         </mrow> 
        </mrow> 
       </msup> 
       <mo>
         ⇒ 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         &gt; 
       </mo> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mi>
              r 
            </mi> 
            <mo>
              / 
            </mo> 
            <mn>
              2 
            </mn> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math></p>
    <p>But this is impossible, since our assumption just implied:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         1 
       </mn> 
       <mo>
         &gt; 
       </mo> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mi>
              r 
            </mi> 
            <mo>
              / 
            </mo> 
            <mn>
              2 
            </mn> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math></p>
    <p>while for any 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         r 
       </mi> 
       <mo>
         ≥ 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math>, we clearly have:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mi>
              r 
            </mi> 
            <mo>
              / 
            </mo> 
            <mn>
              2 
            </mn> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mo>
         &gt; 
       </mo> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mn>
           0.5 
         </mn> 
        </mrow> 
       </msup> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mi>
          C 
        </mi> 
       </msqrt> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1. 
       </mn> 
      </mrow> 
     </math></p>
    <p>For example, for the smallest Carmichael number 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         C 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         561 
       </mn> 
      </mrow> 
     </math>, we have 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         r 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
      </mrow> 
     </math>, and:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mn>
              3 
            </mn> 
            <mo>
              / 
            </mo> 
            <mn>
              2 
            </mn> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mn>
           0.5 
         </mn> 
        </mrow> 
       </msup> 
       <mo>
         = 
       </mo> 
       <msqrt> 
        <mrow> 
         <mn>
           561 
         </mn> 
        </mrow> 
       </msqrt> 
       <mo>
         ≈ 
       </mo> 
       <mn>
         23.68 
       </mn> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1. 
       </mn> 
      </mrow> 
     </math></p>
    <p>Therefore, the inequality 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         1 
       </mn> 
       <mo>
         &gt; 
       </mo> 
       <msup> 
        <mi>
          C 
        </mi> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mi>
              r 
            </mi> 
            <mo>
              / 
            </mo> 
            <mn>
              2 
            </mn> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msup> 
      </mrow> 
     </math> is false, which contradicts our initial assumption.</p>
    <p>Thus 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mo>
         ∃ 
       </mo> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         ≤ 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            C 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         = 
       </mo> 
       <mi>
         k 
       </mi> 
      </mrow> 
     </math>, so 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         | 
       </mo> 
       <mi>
         k 
       </mi> 
      </mrow> 
     </math>, and:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         | 
       </mo> 
       <mi>
         C 
       </mi> 
       <mo>
         ⇒ 
       </mo> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         | 
       </mo> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           C 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           # 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math></p>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.61%"><p style="text-align:center">Number</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.61%"><p style="text-align:center">Factorization</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.61%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mi>
            k 
          </mi> 
          <mo>
            = 
          </mo> 
          <mrow> 
           <mo>
             ⌊ 
           </mo> 
           <mrow> 
            <msqrt> 
             <mi>
               C 
             </mi> 
            </msqrt> 
           </mrow> 
           <mo>
             ⌋ 
           </mo> 
          </mrow> 
          <mo>
            + 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.61%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mi>
            gcd 
          </mi> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mi>
              C 
            </mi> 
            <mo>
              , 
            </mo> 
            <mi>
              k 
            </mi> 
            <mo>
              # 
            </mo> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.61%"><p style="text-align:center">Status</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="22.61%"><p style="text-align:center">561</p></td> 
      <td class="custom-top-td acenter" width="22.61%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mn>
            3 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            11 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            17 
          </mn> 
         </mrow> 
        </math></p></td> 
      <td class="custom-top-td acenter" width="22.61%"><p style="text-align:center">24</p></td> 
      <td class="custom-top-td acenter" width="22.61%"><p style="text-align:center">561</p></td> 
      <td class="custom-top-td acenter" width="22.61%"><p style="text-align:center">Rejected</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.61%"><p style="text-align:center">1105</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mn>
            5 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            13 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            17 
          </mn> 
         </mrow> 
        </math></p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">34</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">1105</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">Rejected</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.61%"><p style="text-align:center">1729</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mn>
            7 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            13 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            19 
          </mn> 
         </mrow> 
        </math></p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">42</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">1729</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">Rejected</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.61%"><p style="text-align:center">2465</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mn>
            5 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            17 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            29 
          </mn> 
         </mrow> 
        </math></p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">50</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">2465</p></td> 
      <td class="acenter" width="22.61%"><p style="text-align:center">Rejected</p></td> 
     </tr> 
     <tr> 
      <td class="custom-bottom-td acenter" width="22.61%"><p style="text-align:center">410,041</p></td> 
      <td class="custom-bottom-td acenter" width="22.61%"><p style="text-align:center"> 
        <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
          <mn>
            41 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            73 
          </mn> 
          <mo>
            × 
          </mo> 
          <mn>
            137 
          </mn> 
         </mrow> 
        </math></p></td> 
      <td class="custom-bottom-td acenter" width="22.61%"><p style="text-align:center">641</p></td> 
      <td class="custom-bottom-td acenter" width="22.61%"><p style="text-align:center">41</p></td> 
      <td class="custom-bottom-td acenter" width="22.61%"><p style="text-align:center">Rejected</p></td> 
     </tr> 
    </table>
    <p>Corollary:</p>
    <p>The primorial test based on 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           # 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> with 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> rejects all Carmichael numbers without exception. It thus constitutes a robust deterministic barrier against Fermat false positives.</p>
    <p>1) Compute 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math></p>
    <p>2) Build 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          k 
        </mi> 
        <mrow></mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>3) Check 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           k 
         </mi> 
         <mo>
           # 
         </mo> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>4) If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mo>
        → 
      </mo> 
     </math> 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is composite</p>
    <p>5) If 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         gcd 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math> 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mo>
        → 
      </mo> 
     </math> 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> is prime</p>
    <p>Important.</p>
    <p>In the context of the primorial primality test, the logarithmic depth defined by:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <mn>
           3 
         </mn> 
         <mo>
           ⋅ 
         </mo> 
         <msub> 
          <mrow> 
           <mtext>
             log 
           </mtext> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>serves as an efficient dynamic upper bound for medium and large integers, since it remains strictly less than 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math>, thereby preventing 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> from being included in the primorial product 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         # 
       </mo> 
      </mrow> 
     </math>.</p>
    <p>However, this bound becomes inappropriate for small integers 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         &lt; 
       </mo> 
       <mn>
         10 
       </mn> 
      </mrow> 
     </math>: in this range, we observe that:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mn>
         3 
       </mn> 
       <mo>
         ⋅ 
       </mo> 
       <msub> 
        <mrow> 
         <mtext>
           log 
         </mtext> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≥ 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math></p>
    <p>which may lead to the inclusion of 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        n 
      </mi> 
     </math> in 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         # 
       </mo> 
      </mrow> 
     </math>, resulting in a false rejection of primality.</p>
    <p>Conclusion:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ⌊ 
        </mo> 
        <mrow> 
         <msqrt> 
          <mi>
            n 
          </mi> 
         </msqrt> 
        </mrow> 
        <mo>
          ⌋ 
        </mo> 
       </mrow> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         with 
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         the 
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         guarantee 
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         that 
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         k 
       </mi> 
       <mo>
         &lt; 
       </mo> 
       <mi>
         n 
       </mi> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math></p>
    <p>in order to preserve the validity of the primorial test for small prime numbers.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         k 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <mtable columnalign="left"> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mrow> 
              <mo>
                ⌊ 
              </mo> 
              <mrow> 
               <msqrt> 
                <mi>
                  n 
                </mi> 
               </msqrt> 
              </mrow> 
              <mo>
                ⌋ 
              </mo> 
             </mrow> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mtext>
               if 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mi>
               n 
             </mi> 
             <mo>
               &lt; 
             </mo> 
             <mn>
               10 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr columnalign="left"> 
           <mtd columnalign="left"> 
            <mrow> 
             <mrow> 
              <mo>
                ⌊ 
              </mo> 
              <mrow> 
               <mi>
                 C 
               </mi> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mi>
                  n 
                </mi> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
               <mo>
                 ⋅ 
               </mo> 
               <msub> 
                <mrow> 
                 <mtext>
                   log 
                 </mtext> 
                </mrow> 
                <mn>
                  2 
                </mn> 
               </msub> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mi>
                  n 
                </mi> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
              </mrow> 
              <mo>
                ⌋ 
              </mo> 
             </mrow> 
            </mrow> 
           </mtd> 
           <mtd columnalign="left"> 
            <mrow> 
             <mtext>
               if 
             </mtext> 
             <mtext>
                 
             </mtext> 
             <mi>
               n 
             </mi> 
             <mo>
               ≥ 
             </mo> 
             <mn>
               10 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
         </mtable> 
        </mrow> 
       </mrow> 
       <mo> 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mtext>
         with 
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         C 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          n 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         : 
       </mo> 
       <mo>
         = 
       </mo> 
       <mn>
         3 
       </mn> 
       <mo>
         + 
       </mo> 
       <mfrac> 
        <mrow> 
         <msub> 
          <mrow> 
           <mtext>
             log 
           </mtext> 
          </mrow> 
          <mrow> 
           <mn>
             10 
           </mn> 
          </mrow> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            n 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mn>
          3 
        </mn> 
       </mfrac> 
      </mrow> 
     </math></p>
   </sec>
  </sec><sec id="s10">
   <title>10. Conclusions</title>
   <p>In this article, we introduced and analyzed a deterministic primality test based on the primorial, designed from a tabular approach to arithmetic. This test relies on evaluating the greatest common divisor between an integer 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       n 
     </mi> 
    </math> and the primorial 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       k 
     </mi> 
    </math>, where 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        k 
      </mi> 
      <mo>
        = 
      </mo> 
      <mrow> 
       <mo>
         ⌊ 
       </mo> 
       <mrow> 
        <msqrt> 
         <mi>
           n 
         </mi> 
        </msqrt> 
       </mrow> 
       <mo>
         ⌋ 
       </mo> 
      </mrow> 
      <mo>
        + 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math> is a natural bound motivated by the fundamental theorem of arithmetic.</p>
   <p>We rigorously established that:</p>
   <p>We complemented the study with an adaptive logarithmic version of the test, calibrated by a regulation function based on the size of 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       n 
     </mi> 
    </math>, allowing to reduce computational cost while maintaining reliable accuracy.</p>
   <p>Finally, a series of detailed numerical examples illustrated the test’s ability to detect Carmichael numbers up to several thousand units, confirming its relevance for cryptographic, pedagogical, and algorithmic applications.</p>
  </sec><sec id="s11">
   <title>Note</title>
   <p>“Novelty brings a new dance to the art of a science like mathematics.</p>
   <p>History has proven, through the noble mission of mathematics, that:</p>
   <p>Any society with little interest in mathematics will imitate technologies but will never master them.</p>
   <p>We add to the value of numbers their shadow ignored over time.</p>
   <p>Even with the same conventional signs, the interpretation of a mathematical truth gives it a new dimension, one step further toward the invisible structure that sustains the world.”</p>
   <p>—Gnouma Jérôme Kadouno</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.144662-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kadouno, G.J. (2025) A New Algorithmic Approach to Integer Divisibility and Factorization. Advances in Pure Mathematics, 15, 472-482.&gt;https://doi.org/10.4236/apm.2025.157022
    </mixed-citation>
   </ref>
   <ref id="scirp.144662-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Gomez, J. (2023) On Primorial Numbers. Advances in Discrete Mathematics, 15, 112-135.
    </mixed-citation>
   </ref>
   <ref id="scirp.144662-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Lenstra Jr., H.W. and Pomerance, C. (2015) Primality Testing with Gaussian Periods. Annals of Mathematics, 181, 541-558.
    </mixed-citation>
   </ref>
   <ref id="scirp.144662-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Massimo, J. (2020) An Analysis of Primality Testing and Its Use in Cryptographic Applications. Journal of Cryptology, 33, 1027-1054.
    </mixed-citation>
   </ref>
   <ref id="scirp.144662-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Albrecht, M.R., et al. (2018) Prime and Prejudice: Primality Testing under Adversarial Conditions. Advances in Cryptology-CRYPTO, 10769, 207-234.
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>