Rust 0ms beats 100%
Code\n\nimpl Solution {\n    pub fn sum_of_squares(nums: Vec<i32>) -> i32 {\n        let len = nums.len();\n        nums.iter()\n            .enumerate()\n     
# Code\n```\nimpl Solution {\n    pub fn sum_of_squares(nums: Vec<i32>) -> i32 {\n        let len = nums.len();\n        nums.iter()\n            .enumerate()\n            .filter_map(|(i, x)| {\n                if len % (i + 1) == 0 {\n                    Some(x * x)\n                } else {\n                    None\n                }\n            })\n            .sum()\n    }\n}\n```
['Rust']