You are given a nums of length n.
An element nums[i] is considered special if i divides n evenly, meaning n % i == 0.
Return the sum of the squares of all special elements in nums.
Constraints:
nums.length n
nums[i]
You are given a nums of length n.
An element nums[i] is considered special if i divides n evenly, meaning n % i == 0.
Return the sum of the squares of all special elements in nums.
Constraints:
nums.length n
nums[i]