galois.are_coprime¶
- galois.are_coprime(*integers)¶
Determines if the integer arguments are pairwise coprime.
- Parameters
*integers (tuple of int) – Each argument must be an integer.
- Returns
True
if the integer arguments are pairwise coprime.- Return type
Notes
A set of integers are pairwise coprime if their LCM is equal to their product.
Examples
In [1]: galois.are_coprime(3, 4, 5) Out[1]: True In [2]: galois.are_coprime(3, 7, 9, 11) Out[2]: False