Numpy Least Common Factor