Javascript direct way 516ms
\nconst maxDivScore = (a, b) => {\n    let f = [];\n    b.map((d, i) => {\n        let cnt = 0;\n        for (const x of a) {\n            if (x % d == 0) cnt++
```\nconst maxDivScore = (a, b) => {\n    let f = [];\n    b.map((d, i) => {\n        let cnt = 0;\n        for (const x of a) {\n            if (x % d == 0) cnt++;\n        }\n        f.push([cnt, d]);\n    });\n    f.sort((x, y) => y[0] - x[0] || x[1] - y[1]);\n    return f[0][1];\n};\n```
['Sorting', 'JavaScript']