Find elements in a list of which all elements in another list are factors, using a list comprehension
It is what you are looking for:
[x for x in list_of_common_factors if all(x % i==0 for i in a)]
It is what you are looking for:
[x for x in list_of_common_factors if all(x % i==0 for i in a)]