greatest common divisor test (GCD test) is the test used in study of loop optimization and loop dependence analysis to test the dependency between loop...
4 KB (585 words) - 02:22, 14 July 2023
(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) - 14:35, 5 December 2024
multiple tests. If two (successful) strong probable prime tests find x2 ≡ −1 (mod n) and y2 ≡ −1 (mod n), but x ≢ ±y (mod n), then gcd(x − y, n) and gcd(x +...
38 KB (5,639 words) - 20:26, 3 May 2025
Extended Euclidean algorithm (redirect from Extended GCD)
common divisor (gcd) of integers a and b, also the coefficients of Bézout's identity, which are integers x and y such that a x + b y = gcd ( a , b ) . {\displaystyle...
28 KB (4,467 words) - 12:32, 15 April 2025
that i is a divisor for j; and gcd is the greatest common divisor. Note: Equation (1) is simply a Fermat primality test. If we find any value of a, not...
15 KB (1,909 words) - 20:05, 9 February 2025
{\displaystyle \gcd(2u,2v)=2\cdot \gcd(u,v)} : 2 {\displaystyle 2} is a common divisor. gcd ( u , 2 v ) = gcd ( u , v ) {\displaystyle \gcd(u,2v)=\gcd(u,v)} if...
17 KB (1,993 words) - 13:05, 28 January 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
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
algorithm, is an efficient method for computing the greatest common divisor (GCD) of two integers, the largest number that divides them both without a remainder...
126 KB (15,349 words) - 16:35, 30 April 2025
Greatest common divisor (section Binary GCD algorithm)
The GCD is a commutative function: gcd(a, b) = gcd(b, a). The GCD is an associative function: gcd(a, gcd(b, c)) = gcd(gcd(a, b), c). Thus gcd(a, b,...
36 KB (4,743 words) - 09:06, 10 April 2025
their GCD. gcd ( p , q ) = gcd ( q , p ) . {\displaystyle \gcd(p,q)=\gcd(q,p).} gcd ( p , q ) = gcd ( q , p + r q ) {\displaystyle \gcd(p,q)=\gcd(q,p+rq)}...
52 KB (7,886 words) - 13:57, 7 April 2025
Recursion (computer science) (category CS1 location test)
: gcd ( x , y ) = gcd ( y , x % y ) {\displaystyle \gcd(x,y)=\gcd(y,x\%y)} if y ≠ 0 {\displaystyle y\neq 0} gcd ( x , 0 ) = x {\displaystyle \gcd(x,0)=x}...
62 KB (7,388 words) - 14:45, 29 March 2025
statements must be executed in order of their (potential) true dependence. GCD test Randy Allen and Ken Kennedy. Optimizing Compilers for Modern Architectures:...
4 KB (732 words) - 02:24, 14 July 2023
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) - 07:07, 3 June 2024
graphics card to be based on a chiplet design TSMC N5 for Graphics Compute Die (GCD) TSMC N6 for Memory Cache Die (MCD) Up to 24 GB of GDDR6 video memory Doubled...
16 KB (1,968 words) - 01:46, 10 May 2025
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
Coprime integers (section Notation and testing)
algorithm in base n > 1: gcd ( n a − 1 , n b − 1 ) = n gcd ( a , b ) − 1. {\displaystyle \gcd \left(n^{a}-1,n^{b}-1\right)=n^{\gcd(a,b)}-1.} A set of integers...
16 KB (2,409 words) - 15:43, 27 April 2025
compute gcd ( N , a r / 2 + 1 ) {\displaystyle \gcd(N,a^{r/2}+1)} ; it will produce a nontrivial factor if gcd ( N , a r / 2 − 1 ) {\displaystyle \gcd(N,a^{r/2}-1)}...
40 KB (5,812 words) - 01:39, 10 May 2025
Divisibility rule (redirect from Base conversion divisibility test)
Alternatively, any number Q = 10c + d is divisible by n = 10a + b, such that gcd(n, 2, 5) = 1, if c + D(n)d = An for some integer A, where D ( n ) ≡ { 9 a...
54 KB (6,803 words) - 16:55, 19 April 2025
Elliptic curve primality (redirect from Elliptic curve primality test)
{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
calculation of the gcd ( v , n ) {\displaystyle \gcd(v,n)} . Assuming we calculate a slope of the form u / v {\displaystyle u/v} with gcd ( u , v ) = 1 {\displaystyle...
26 KB (4,511 words) - 15:42, 1 May 2025
Jacobi symbol (section Primality testing)
n ) = { 0 if gcd ( a , n ) ≠ 1 , ± 1 if gcd ( a , n ) = 1. {\displaystyle \left({\frac {a}{n}}\right)={\begin{cases}0&{\text{if }}\gcd(a,n)\neq 1,\\\pm...
45 KB (2,390 words) - 08:56, 9 May 2025
Alternately, any number p satisfying the equality gcd ( p , ∑ a = 1 p − 1 a p − 1 ) = 1 {\displaystyle \gcd \left(p,\sum _{a=1}^{p-1}a^{p-1}\right)=1} is...
18 KB (2,372 words) - 19:29, 25 April 2025
test whether gcd ( e , p − 1 ) = 1 {\displaystyle \gcd(e,p-1)=1} and gcd ( e , q − 1 ) = 1 {\displaystyle \gcd(e,q-1)=1} while generating and testing...
8 KB (1,466 words) - 22:47, 1 May 2025
Brent. They observed that if gcd ( a , n ) > 1 {\displaystyle \gcd(a,n)>1} , then also gcd ( a b , n ) > 1 {\displaystyle \gcd(ab,n)>1} for any positive...
13 KB (1,755 words) - 06:12, 18 April 2025
Factorization of polynomials over finite fields (redirect from Factorization of polynomial over finite field and irreducibility tests)
Factors with deg(u) > d do if gcd(g, u) ≠ 1 and gcd(g, u) ≠ u, then Factors:= Factors ∖ { u } ∪ { ( gcd ( g , u ) , u / gcd ( g , u ) ) } {\displaystyle...
30 KB (4,620 words) - 13:48, 7 May 2025
Proth's theorem (category Primality tests)
being GCD(b ± 1, p). b2 ≠ 1, where p is proven composite by Fermat's test, base a. b = 0, where p has a nontrivial divisor GCD(a, p). Where GCD(x, y)...
14 KB (2,116 words) - 17:01, 7 May 2025
RDNA 3 (section Graphics Compute Die (GCD))
lower yields. RDNA 3 uses two types of chiplets: the Graphics Compute Die (GCD) and Memory Cache Dies (MCDs). On Ryzen and Epyc processors, AMD used its...
30 KB (2,915 words) - 13:25, 27 March 2025
Primality certificate (category Primality tests)
rapidly checked without having to run an expensive or unreliable primality test. "Succinct" usually means that the proof should be at most polynomially larger...
16 KB (2,252 words) - 00:15, 14 November 2024
Provided GCD(n, Q) = 1 then testing for congruence (4) is equivalent to augmenting our Lucas test with a "base Q" Solovay–Strassen primality test. There...
25 KB (3,584 words) - 19:38, 28 April 2025