Let's say I have an array
a = ([6,8,10,13,15,18,21])
I have another array
b= ([2,5])
I want to return an array which gives me nonzero values of a%b. If any value in a mod any value in b equals zero, I don't want to return it.
c = ([13,21])
Using numpy.mod(a,b)
returns
ValueError: operands could not be broadcast together with shapes
How can I execute this?