Three Lines Only Magic Solution
\njavascript []\nf = (n, d) => d.map(d => n.filter(v => !(v % d)).length);\nmaxDivScore = (n, d, c = f(n, d), m = Math.max(...c)) =>\n    Math.min(...d.filter((
\n```javascript []\nf = (n, d) => d.map(d => n.filter(v => !(v % d)).length);\nmaxDivScore = (n, d, c = f(n, d), m = Math.max(...c)) =>\n    Math.min(...d.filter((_, i) => c[i] === m));\n\n```
['JavaScript']