demo_numpy_ufunc_gcd2.py:
import numpy as np arr = np.array([20, 8, 32, 36, 16]) x = np.gcd.reduce(arr) print(x)
C:\Users\My Name>python demo_numpy_ufunc_gcd2.py
4