You are given an array nums consisting of positive integers.
The greatest common divisor (GCD) of a sequence of integers is the largest positive integer that divides every integer in the sequence.
Return the total number of distinct greatest common divisors among all nonempty subsequences of nums.
Note: A subsequence of an array is a sequence that can be derived from the array by deleting zero or more elements without changing the relative order of the remaining elements.
Constraints:
nums.length
nums[i]
You are given an array nums consisting of positive integers.
The greatest common divisor (GCD) of a sequence of integers is the largest positive integer that divides every integer in the sequence.
Return the total number of distinct greatest common divisors among all nonempty subsequences of nums.
Note: A subsequence of an array is a sequence that can be derived from the array by deleting zero or more elements without changing the relative order of the remaining elements.
Constraints:
nums.length
nums[i]