• Lehmer's GCD algorithm, named after Derrick Henry Lehmer, is a fast GCD algorithm, an improvement on the simpler but slower Euclidean algorithm. It is...
    4 KB (572 words) - 18:19, 11 January 2020
  • Thumbnail for Binary GCD algorithm
    binary GCD algorithm, also known as Stein's algorithm or the binary Euclidean algorithm, is an algorithm that computes the greatest common divisor (GCD) of...
    17 KB (1,993 words) - 13:05, 28 January 2025
  • Thumbnail for Euclidean algorithm
    mathematics, the Euclidean algorithm, or Euclid's algorithm, is an efficient method for computing the greatest common divisor (GCD) of two integers, the largest...
    126 KB (15,349 words) - 16:35, 30 April 2025
  • compute gcd(48,18), one proceeds as follows: gcd ( 48 , 18 ) → gcd ( 48 − 18 , 18 ) = gcd ( 30 , 18 ) → gcd ( 30 − 18 , 18 ) = gcd ( 12 , 18 ) → gcd ( 12...
    36 KB (4,743 words) - 09:31, 18 June 2025
  • States Greatest common divisor Binary GCD algorithm Polynomial greatest common divisor Lehmer's GCD algorithm Griffith College Dublin, in Dublin, Ireland...
    835 bytes (134 words) - 19:01, 26 March 2025
  • algorithm can in turn be run on those until only primes remain. A basic observation is that, using Euclid's algorithm, we can always compute the GCD between...
    40 KB (5,812 words) - 21:44, 17 June 2025
  • Thumbnail for D. H. Lehmer
    theory algorithms for multiprecision integers, such as factoring, Euclid's algorithm, long division, and proof of primality, he also formulated Lehmer's conjecture...
    13 KB (1,371 words) - 15:36, 3 December 2024
  • extended Euclidean algorithm is an extension to the Euclidean algorithm, and computes, in addition to the greatest common divisor (gcd) of integers a and...
    28 KB (4,467 words) - 20:39, 9 June 2025
  • steps: Pseudocode for Pollard's rho algorithm x ← 2 // starting value y ← x d ← 1 while d = 1: x ← g(x) y ← g(g(y)) d ← gcd(|x - y|, n) if d = n: return failure...
    13 KB (1,755 words) - 06:12, 18 April 2025
  • Lehmer's Mahler measure problem), a problem in number theory, after Derrick Henry Lehmer Lehmer five, named after Dick Lehmer Lehmer's GCD algorithm,...
    2 KB (233 words) - 19:39, 10 April 2018
  • g = gcd(aM − 1, n) = 13. Since 1 < 13 < 299, thus return 13. 299 / 13 = 23 is prime, thus it is fully factored: 299 = 13 × 23. Since the algorithm is incremental...
    9 KB (1,251 words) - 18:33, 16 April 2025
  • (D/p)=+1} , this algorithm degenerates into a slow version of Pollard's p − 1 algorithm. So, for different values of M we calculate gcd ( N , V M − 2 )...
    5 KB (831 words) - 21:06, 30 September 2022
  • coprime is given by the Euclidean algorithm and its faster variants such as binary GCD algorithm or Lehmer's GCD algorithm. The number of integers coprime...
    16 KB (2,386 words) - 15:43, 27 April 2025
  • Lenstra elliptic-curve factorization (category Integer factorization algorithms)
    Euclidean algorithm. In particular, division by some v mod n {\displaystyle v{\bmod {n}}} includes calculation of the gcd ( v , n ) {\displaystyle \gcd(v,n)}...
    26 KB (4,511 words) - 15:42, 1 May 2025
  • Thumbnail for Berlekamp–Rabin algorithm
    {\displaystyle O(n^{2}\log p)} . Taking the gcd {\displaystyle \gcd } of two polynomials via Euclidean algorithm works in O ( n 2 ) {\displaystyle O(n^{2})}...
    12 KB (2,006 words) - 20:25, 19 June 2025
  • Schoof's algorithm is an efficient algorithm to count points on elliptic curves over finite fields. The algorithm has applications in elliptic curve cryptography...
    20 KB (4,092 words) - 17:22, 12 June 2025
  • Euler–Jacobi pseudoprime. When n is odd and composite, at least half of all a with gcd(a,n) = 1 are Euler witnesses. We can prove this as follows: let {a1, a2,...
    10 KB (1,517 words) - 18:46, 16 April 2025
  • In computational number theory, Cornacchia's algorithm is an algorithm for solving the Diophantine equation x 2 + d y 2 = m {\displaystyle x^{2}+dy^{2}=m}...
    3 KB (448 words) - 05:09, 6 February 2025
  • {p}}+1\right)^{2}\leq \left({\sqrt[{4}]{N}}+1\right)^{2}<q} and thus gcd ( q , m p ) = 1 {\displaystyle \gcd(q,m_{p})=1} and there exists an integer u with the property...
    27 KB (4,793 words) - 03:13, 13 December 2024
  • Thumbnail for Euler's totient function
    other three numbers in this range, 3, 6, and 9 are not, since gcd(9, 3) = gcd(9, 6) = 3 and gcd(9, 9) = 9. Therefore, φ(9) = 6. As another example, φ(1) =...
    44 KB (6,519 words) - 06:28, 5 June 2025
  • Euler's factorization method (category Integer factorization algorithms)
    k = gcd ⁡ ( a − c , d − b ) {\displaystyle k=\operatorname {gcd} (a-c,d-b)} and h = gcd ⁡ ( a + c , d + b ) {\displaystyle h=\operatorname {gcd} (a+c...
    6 KB (1,186 words) - 14:59, 17 June 2025
  • for which all values of a {\displaystyle a} with gcd ⁡ ( a , n ) = 1 {\displaystyle \operatorname {gcd} (a,n)=1} are Fermat liars. For these numbers, repeated...
    8 KB (1,134 words) - 18:43, 16 April 2025
  • and n = AB). Hence, if factoring is a goal, these gcd calculations can be inserted into the algorithm at little additional computational cost. This leads...
    38 KB (5,639 words) - 20:26, 3 May 2025
  • Quadratic sieve (category Integer factorization algorithms)
    = gcd ( 194 , 1649 ) ⋅ gcd ( 34 , 1649 ) = 97 ⋅ 17 {\displaystyle 1649=\gcd(194,1649)\cdot \gcd(34,1649)=97\cdot 17} using the Euclidean algorithm to...
    27 KB (4,568 words) - 15:10, 4 February 2025
  • Thumbnail for Computational complexity of mathematical operations
    Computational complexity of mathematical operations (category Computer arithmetic algorithms)
    "Two Fast GCD Algorithms". Journal of Algorithms. 16 (1): 110–144. doi:10.1006/jagm.1994.1006. Crandall, R.; Pomerance, C. (2005). "Algorithm 9.4.7 (Stehlé-Zimmerman...
    27 KB (1,617 words) - 21:45, 14 June 2025
  • (also Dixon's random squares method or Dixon's algorithm) is a general-purpose integer factorization algorithm; it is the prototypical factor base method...
    13 KB (2,513 words) - 21:23, 10 June 2025
  • {\displaystyle b} is a primitive root of m {\displaystyle m} and gcd ( a , m ) = 1 {\displaystyle \gcd(a,m)=1} . Discrete logarithms are quickly computable in...
    17 KB (2,506 words) - 02:19, 27 April 2025
  • factorization of Δ and by taking a gcd, this ambiguous form provides the complete prime factorization of n. This algorithm has these main steps: Let n be...
    25 KB (2,977 words) - 21:02, 19 June 2025
  • Carmichael numbers. However, a slightly weaker variant of the converse is Lehmer's theorem: If there exists an integer a such that a p − 1 ≡ 1 ( mod p ) {\displaystyle...
    18 KB (2,372 words) - 19:29, 25 April 2025
  • (1 < gcd(a,n) < n for some a ≤ r), output composite. For (a = r; a > 1; a--) { If ((gcd = GCD[a,n]) > 1 && gcd < n), Return[Composite] } gcd = {GCD(29,31)=1...
    20 KB (2,447 words) - 13:22, 18 June 2025