def divisores(*numeros):
menor = min(numeros)
for i in range(1, menor+1):
if all(numero % i == 0 for numero in numeros):
yield i
print('Divisores de 5 e 10:', list(divisores(5, 10)))
print('Divisores de 42, 100 e 999:', list(divisores(42, 100, 999)))
print('Divisores de 14, 38 e 74:', list(divisores(14, 38, 74)))
ZGVmIGRpdmlzb3JlcygqbnVtZXJvcyk6CiAgbWVub3IgPSBtaW4obnVtZXJvcykKICBmb3IgaSBpbiByYW5nZSgxLCBtZW5vcisxKToKICAgIGlmIGFsbChudW1lcm8gJSBpID09IDAgZm9yIG51bWVybyBpbiBudW1lcm9zKToKICAgICAgeWllbGQgaQogICAgICAKcHJpbnQoJ0Rpdmlzb3JlcyBkZSA1IGUgMTA6JywgbGlzdChkaXZpc29yZXMoNSwgMTApKSkKcHJpbnQoJ0Rpdmlzb3JlcyBkZSA0MiwgMTAwIGUgOTk5OicsIGxpc3QoZGl2aXNvcmVzKDQyLCAxMDAsIDk5OSkpKQpwcmludCgnRGl2aXNvcmVzIGRlIDE0LCAzOCBlIDc0OicsIGxpc3QoZGl2aXNvcmVzKDE0LCAzOCwgNzQpKSk=