How many numbers that is smaller or equal to K and is divisible by only one number in a set A ( A.size() <= 20 )
I forgot to mention K <= 10^18 and A[i] <= 10^9. Please help !!!
Codeforces Round 946 Solution Discussion