runtime 100%
\n\n# Code\n\nclass Solution {\n    public int sumOfSquares(int[] nums) {\n        int n=nums.length;\n        int t=0;\n        for(int i=0; i<nums.length; i++
\n\n# Code\n```\nclass Solution {\n    public int sumOfSquares(int[] nums) {\n        int n=nums.length;\n        int t=0;\n        for(int i=0; i<nums.length; i++){\n            if(n%(i+1)==0){\n                t+=nums[i]*nums[i];\n                }\n        }\n        return t;\n    }\n}\n```
['Java']