You are given an integer array nums.
In one operation, you can choose two indices a and b such that nums[a] % nums[b] == nums[a] with the value of nums[b].
You may apply this operation any number of times.
Return the minimum possible sum of the elements in nums after any number of operations.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
In one operation, you can choose two indices a and b such that nums[a] % nums[b] == nums[a] with the value of nums[b].
You may apply this operation any number of times.
Return the minimum possible sum of the elements in nums after any number of operations.
Constraints:
nums.length
nums[i]