Home›Numerical Algorithm›Number Theory and PrimalityGroupNumber Theory and PrimalityThis group gathers numerical algorithms rooted in number theory, including primality testing such as the Miller-Rabin and AKS tests, integer factorization methods such as Pollard rho, the quadratic sieve, the general number field sieve and Lenstra elliptic-curve factorization, the Euclidean and extended Euclidean algorithms for greatest common divisors, modular arithmetic algorithms such as modular exponentiation and Montgomery modular multiplication, discrete logarithm algorithms such as baby-step giant-step and Pohlig-Hellman, the Chinese remainder theorem, classical multiplication and long division, and historical arithmetic systems and techniques for computing by hand. Their shared work is a computation whose correctness rests on properties of integers and modular arithmetic, as distinct from a checksum computed for error detection, which belongs to Checksum and Error Detection.FactsBrowse BySourcesComments (0)Reader Challenges (0)FactsComparisonEra of EmergenceWell-attested1975 1Browse ByAll Number Theory and PrimalityNumber Theory and Primality45 entriesNumber Theory and PrimalityFilter Results53 entriesCategoryAllNumber Theory and Primality (45)Time ComplexityAllLinear Time -- O(n) (1)Linearithmic Time -- O(n log n) (2)Logarithmic Time -- O(log n) (3)Polynomial Time -- O(n^k) (7)Quadratic Time -- O(n^2) (1)Sub-Linear / Root Time -- O(sqrt n) (2)Design TechniqueAllBrute-Force Search (1)Divide and Conquer (2)Randomized Algorithms (4)Recursion (5)Invented ByAllAda Lovelace (1)Christian Zeller (1)Daniel J. Bernstein (1)Derrick Henry Lehmer (1)Edouard Lucas (2)Gary Miller (1)Leonard Adleman (1)Manindra Agrawal (1)Martin Hellman (1)Neeraj Kayal (1)Nitin Saxena (1)Percy Ludgate (1)Pierre de Fermat (1)Simon Plouffe (1)Stephen Cook (1)Théophile Pépin (1)Volker Strassen (1)GroupAllNumber Theory and Primality (45)Credited ToAllAda Lovelace (1)Christian Zeller (1)Daniel J. Bernstein (1)Derrick Henry Lehmer (2)Edouard Lucas (1)Gary Miller (1)Leonard Adleman (1)Manindra Agrawal (1)Martin Hellman (1)Neeraj Kayal (1)Nitin Saxena (1)Percy Ludgate (1)Pierre de Fermat (1)Simon Plouffe (1)Stephen Cook (1)Théophile Pépin (1)Volker Strassen (1)ACM AreaAllAlgorithms and Complexity Theory (33)Computer Algebra (4)Show ResultsBrowseCompareSelect all 50Adleman-Pomerance-Rumely primality testNumerical Algorithm3 linksAKS Primality TestNumerical Algorithm7 linksAlgorismNumerical AlgorithmBaby-Step Giant-Step AlgorithmNumerical Algorithm2 linksBailey-Borwein-Plouffe formulaNumerical Algorithm3 linksBaillie-PSW primality testNumerical Algorithm1 linkBerlekamp-Zassenhaus AlgorithmNumerical Algorithm1 linkBinary GCD algorithmNumerical Algorithm1 linkBooth's multiplication algorithmNumerical Algorithm3 linksCantor-Zassenhaus AlgorithmNumerical Algorithm1 linkChinese Remainder Theorem AlgorithmNumerical AlgorithmContinued fraction factorizationNumerical Algorithm3 linksCox-Zucker machineNumerical AlgorithmDixon's factorization methodNumerical Algorithm2 linksElliptic curve primalityNumerical Algorithm5 linksEuclidean AlgorithmNumerical Algorithm2 linksEuler's factorization methodNumerical Algorithm1 linkExponentiation by Squaring AlgorithmNumerical Algorithm2 linksExtended Euclidean AlgorithmNumerical Algorithm2 linksFactorization of PolynomialsNumerical Algorithm2 linksFermat primality testNumerical Algorithm2 linksFermat's factorization methodNumerical Algorithm3 linksGeneral Number Field Sieve AlgorithmNumerical Algorithm1 linkInteger square rootNumerical Algorithm1 linkIrish LogarithmNumerical Algorithm2 linksLattice multiplicationNumerical Algorithm1 linkLenstra Elliptic-Curve Factorization AlgorithmNumerical AlgorithmLong divisionNumerical Algorithm1 linkLong multiplicationNumerical Algorithm1 linkLucas primality testNumerical Algorithm3 linksLucas-Lehmer primality testNumerical Algorithm3 linksLucas-Lehmer-Riesel testNumerical Algorithm1 linkMiller-Rabin Primality TestNumerical Algorithm4 linksMontgomery Modular Multiplication AlgorithmNumerical AlgorithmNote GNumerical Algorithm3 linksPépin's testNumerical Algorithm3 linksPohlig-Hellman AlgorithmNumerical Algorithm4 linksPollard's p - 1 algorithmNumerical Algorithm1 linkPollard's Rho AlgorithmNumerical Algorithm2 linksPolynomial Greatest Common DivisorNumerical Algorithm2 linksQuadratic Sieve AlgorithmNumerical Algorithm1 linkResultantNumerical AlgorithmShort divisionNumerical AlgorithmSieve of AtkinNumerical Algorithm4 linksSieve of EratosthenesNumerical Algorithm2 linksSieve of PritchardNumerical Algorithm1 linkSieve of SundaramNumerical Algorithm1 linkSolovay-Strassen primality testNumerical Algorithm4 linksSpecial number field sieveNumerical Algorithm1 linkToom-Cook MultiplicationNumerical Algorithm4 linksShowing 1 to 50 of 53, page 1 of 2.12Next →Sources1. Wikipedia: Primality testWikimedia FoundationPrimality test, complexity section, Pratt certificate sentenceQuote, Primality test, complexity section, Pratt certificate sentenceIn 1975, Vaughan Pratt showed that there existed a certificate for primality that was checkable in polynomial time, and thus that PRIMES was in NPView the SourceResultant (Wikipedia)Has Member: Resultant, Wikipedia lead: "the resultant of two polynomials is a polynomial expression of their coefficients... The resultant is widely used in number theory..."; checked 2026-09-27View the SourceBailey-Borwein-Plouffe formula (Wikipedia)Has Member: Bailey-Borwein-Plouffe formula, LeadQuote, Has Member: Bailey-Borwein-Plouffe formula, LeadThe BBP formula gives rise to a spigot algorithm for computing the nth base-16 (hexadecimal) digit of πView the SourceSpecial number field sieve (Wikipedia)Has Member: Special number field sieve, LeadQuote, Has Member: Special number field sieve, Leadthe special number field sieve (SNFS) is a special-purpose integer factorization algorithm.View the SourceDixon's factorization method (Wikipedia)Has Member: Dixon's factorization method, LeadQuote, Has Member: Dixon's factorization method, Leadis a general-purpose integer factorization algorithm; it is the prototypical factor base method.View the SourcePollard's p - 1 algorithm (Wikipedia)Has Member: Pollard's p - 1 algorithm, Lead sentenceQuote, Has Member: Pollard's p - 1 algorithm, Lead sentenceis a number theoretic integer factorization algorithm, invented by John Pollard in 1974View the SourceBaillie-PSW primality test (Wikipedia)Has Member: Baillie-PSW primality test, Lead sentenceQuote, Has Member: Baillie-PSW primality test, Lead sentenceis a probabilistic or possibly deterministic primality testing algorithm that determines whether a number is composite or is a probable prime.View the SourceSieve of Sundaram (Wikipedia)Has Member: Sieve of Sundaram, Lead sentenceQuote, Has Member: Sieve of Sundaram, Lead sentencethe sieve of Sundaram is a variant of the sieve of Eratosthenes, a simple deterministic algorithm for finding all the prime numbers up to a specified integer.View the SourceSolovay-Strassen primality test (Wikipedia)Has Member: Solovay-Strassen primality test, Lead sentenceQuote, Has Member: Solovay-Strassen primality test, Lead sentenceis a probabilistic primality test to determine if a number is composite or probably prime.View the SourceLucas-Lehmer primality test (Wikipedia)Has Member: Lucas-Lehmer primality test, LeadQuote, Has Member: Lucas-Lehmer primality test, Leadis a primality test for Mersenne numbersView the SourcePépin's test (Wikipedia)Has Member: Pépin's test, LeadQuote, Has Member: Pépin's test, Leadis a primality test, which can be used to determine whether a Fermat number is primeView the SourceAdleman-Pomerance-Rumely primality test (Wikipedia)Has Member: Adleman-Pomerance-Rumely primality test, LeadQuote, Has Member: Adleman-Pomerance-Rumely primality test, Leadis an algorithm for determining whether a number is primeView the SourceContinued fraction factorization (Wikipedia)Has Member: Continued fraction factorization, LeadQuote, Has Member: Continued fraction factorization, Leadis an integer factorization algorithmView the SourceInteger factorization (cp-algorithms)Has Member: Fermat's factorization method, Fermat's factorization method sectionQuote, Has Member: Fermat's factorization method, Fermat's factorization method sectionFermat's factorization method tries to exploit this fact by guessing the first squareView the SourceMultiplication algorithm (Wikipedia)Has Member: Long multiplication, Article leadQuote, Has Member: Long multiplication, Article leadThe oldest and simplest method, known since antiquity as long multiplication or grade-school multiplication, consists of multiplying every digit in the first number by every digit in the second and adding the results.View the SourceLattice multiplication (Wikipedia)Has Member: Lattice multiplication, Lead paragraphQuote, Has Member: Lattice multiplication, Lead paragraphLattice multiplication, also known as the Italian method, Chinese method, Chinese lattice, gelosia multiplication, sieve multiplication, shabakh, diagonally or Venetian squares, is a method of multiplication that uses a lattice to multiply two multi-digit numbers.View the SourceFermat primality test (Wikipedia)Has Member: Fermat primality test, LeadQuote, Has Member: Fermat primality test, Leadis a probabilistic test to determine whether a number is a probable primeView the SourceLucas primality test (Wikipedia)Has Member: Lucas primality test, LeadQuote, Has Member: Lucas primality test, Leadthe Lucas test is a primality test for a natural number nView the SourceBinary GCD algorithm (Wikipedia)Has Member: Binary GCD algorithm, LeadQuote, Has Member: Binary GCD algorithm, Leadis an algorithm that computes the greatest common divisor (GCD) of two nonnegative integersView the SourceBooth's multiplication algorithm (Wikipedia)Has Member: Booth's multiplication algorithm, Lead, operationQuote, Has Member: Booth's multiplication algorithm, Lead, operationmultiplies two signed binary numbers in twoView the SourceEuler's factorization method (Wikipedia)Has Member: Euler's factorization method, Lead, subjectQuote, Has Member: Euler's factorization method, Lead, subjectis a technique for factoring a numberView the SourceLucas-Lehmer-Riesel test (Wikipedia)Has Member: Lucas-Lehmer-Riesel test, LeadQuote, Has Member: Lucas-Lehmer-Riesel test, LeadIn mathematics, the Lucas-Lehmer-Riesel test is a primality test for numbers of the form N = k · 2n − 1 with odd k < 2n.View the SourceWilliams's p + 1 algorithm (Wikipedia)Has Member: Williams's p + 1 algorithm, LeadQuote, Has Member: Williams's p + 1 algorithm, LeadIn computational number theory, Williams's p + 1 algorithm is an integer factorization algorithmView the SourceElliptic curve primality (Wikipedia)Has Member: Elliptic curve primality, Lead, primality provingQuote, Has Member: Elliptic curve primality, Lead, primality provingare among the quickest and most widely used methods in primality provingView the SourceShort division (Wikipedia)Has Member: Short division, Lead, division algorithmQuote, Has Member: Short division, Lead, division algorithmshort division is a division algorithm which breaks down a division problem into a series of easier stepsView the SourceCox-Zucker machine (Wikipedia)Has Member: Cox-Zucker machine, LeadQuote, Has Member: Cox-Zucker machine, LeadIn arithmetic geometry, the Cox-Zucker machine is an algorithm introduced by David A. Cox and Steven Zucker for studying elliptic surfaces.View the SourceTrial division (Wikipedia)Has Member: Trial division, Lead sectionQuote, Has Member: Trial division, Lead sectioninteger factorization algorithmsView the SourceInteger square root (Wikipedia)Has Member: Integer square root, Lead sectionQuote, Has Member: Integer square root, Lead sectionIn number theory, the integer square rootView the SourceComments (0)No comments yet. Be the first to share a thought.Sign in to join the discussion.Reader Challenges (0)No disputes yet. Spotted an error or a better source? Open the first one.Sign in to dispute this or suggest a correction.