|
|
return ⌊log2(a)⌋
|
|
|
test a for divisibility by 2: true if a even
|
|
|
test a for divisibility by 2: true if a odd
|
|
|
test a for being square
|
|
|
test a for primality
|
|
|
return gcd of a and b
|
|
|
extended Euclidean algorithm with return of gcd of a and b, u and v contain the absolute values of the factors of the linear combination g = sign_u*u*a + sign_v*v*b
|
|
|
return the multiplicative inverse of a mod b
|
|
|
return the least common multiple of a and b
|
|
|
return the Jacobi symbol ( )
|
|
|
return the integer part of the square root of a
|
|
|
return the square root of a modulo an odd prime p
|
|
|
return the square root of a modulo p*q, where p and q are odd primes
|
|
|
return the even part of a, odd contains the odd part of a
|
|
|
return a solution x of the system of simultaneous congruences x ≡ a mod m and x ≡ b mod n, if a solution exists
|