import numpy as np
def divisores(num):
n = np.arange(1,num)
d = num % n
zeros = d == 0
return n[zeros]
def divisores_comuns(num1, num2):
divs1 = set(divisores(num1))
divs2 = set(divisores(num2))
return divs1 & divs2
print(divisores_comuns(15,20))
aW1wb3J0IG51bXB5IGFzIG5wCgpkZWYgZGl2aXNvcmVzKG51bSk6CiAgICBuID0gbnAuYXJhbmdlKDEsbnVtKQogICAgZCA9IG51bSAlIG4KICAgIHplcm9zID0gZCA9PSAwCiAgICByZXR1cm4gblt6ZXJvc10KCmRlZiBkaXZpc29yZXNfY29tdW5zKG51bTEsIG51bTIpOgogICAgZGl2czEgPSBzZXQoZGl2aXNvcmVzKG51bTEpKQogICAgZGl2czIgPSBzZXQoZGl2aXNvcmVzKG51bTIpKQogICAgcmV0dXJuIGRpdnMxICYgZGl2czIKCgpwcmludChkaXZpc29yZXNfY29tdW5zKDE1LDIwKSk=