Determine the count of natural numbers within the interval from to , inclusive, that are not divisible by any of the specified distinct prime numbers p_i.
The first line provides two integers, and (1 \le a \le b \le 10^{18}), representing the interval's boundaries. The second line specifies the number of prime numbers, (1 \le n \le 9). The third line lists the prime numbers p_i, each of which is distinct and does not exceed .
Print the count of natural numbers that meet the criteria.
Example 1
Example 2
Example 3
Example 4