Distinct Prime Factors of Product of Array
A prime divides the product exactly when it divides some element, so collect the prime factors of every element into one set.
A prime divides the product exactly when it divides some element, so collect the prime factors of every element into one set.