You are viewing a single comment's thread. Return to all comments →
It's pretty easy
Loops through the possibilites between nmax and nmin
sum((inmax)%n for n in a) == 0
Finds whether chosen n is multiple of nmax by using modulus function
sum(n%(inmax) for n in b) == 0
Finds whether chosen n is a factor of bmin
I hope you got it..