helpers.are_coprime

helpers.are_coprime(a, b)

Check if two integers are coprime

Parameters

Name Type Description Default
a int An integer required
b int An integer required

Returns

Type Description
bool Returns True if two integers are coprime

Examples:

import pyLHD
pyLHD.are_coprime(2,12)
False
pyLHD.are_coprime(3,11)
True