Updated: 2024-03-12 1 min read On This Pageclass Solution: def minimumArrayLength(self, nums: List[int]) -> int: mi = min(nums) if any(x % mi for x in nums): return 1 return (nums.count(mi) + 1) // 2