JavaScript
Code\n\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar sumOfSquares = function(nums) {\n    sum = 0; \n\n    for (let i=0; i<nums.length; i++) {\
# Code\n```\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar sumOfSquares = function(nums) {\n    sum = 0; \n\n    for (let i=0; i<nums.length; i++) {\n        if (nums.length % (i+1) == 0) {\n            sum += nums[i] ** 2\n        }\n    }\n\n    return sum\n};\n```
['JavaScript']