Given an integer array nums and an integer k, return the number of subarrays of nums where the least common multiple of all elements in the subarray is equal to k.
Note: A subarray is defined as a contiguous non empty sequence of elements within an array. The least common multiple of an array of numbers is the smallest positive integer that is evenly divisible by all elements in that array.
Constraints:
nums.length
nums[i], k
Given an integer array nums and an integer k, return the number of subarrays of nums where the least common multiple of all elements in the subarray is equal to k.
Note: A subarray is defined as a contiguous non empty sequence of elements within an array. The least common multiple of an array of numbers is the smallest positive integer that is evenly divisible by all elements in that array.
Constraints:
nums.length
nums[i], k