One liner Python
\nclass Solution:\n    def sumOfSquares(self, nums: List[int]) -> int:\n        return sum(v*v for i, v in enumerate(nums) if (len(nums)%(i+1)==0))\n
```\nclass Solution:\n    def sumOfSquares(self, nums: List[int]) -> int:\n        return sum(v*v for i, v in enumerate(nums) if (len(nums)%(i+1)==0))\n```
['Python']