Easy | C++ | very simple
\nclass Solution {\npublic:\n    int sumOfSquares(vector<int>& nums) {\n        int sum=0;\n        int n=nums.size();\n        for(int i=0;i<n;i++){\n         
```\nclass Solution {\npublic:\n    int sumOfSquares(vector<int>& nums) {\n        int sum=0;\n        int n=nums.size();\n        for(int i=0;i<n;i++){\n            if(n%(i+1)==0) sum+= nums[i]*nums[i];\n        }\n        return sum;\n    }\n};\n```
['C']