Given an array of positive integers nums, return the number of distinct prime factors present in the product of all elements of nums.
Note: A prime number is a positive integer greater than
that has no positive divisors other than and itself. An integer is a prime factor of a number if it is a prime number that divides that number completely.
Constraints:
nums.length
nums[i]
Given an array of positive integers nums, return the number of distinct prime factors present in the product of all elements of nums.
Note: A prime number is a positive integer greater than
that has no positive divisors other than and itself. An integer is a prime factor of a number if it is a prime number that divides that number completely.
Constraints:
nums.length
nums[i]