function flag(x){ for(let i = 1;i <= x;i++){ if((x%i === 0 && i !== 1 && i !== x) || 1 === x)return false; } return true; } return arr.filter(function (x){ return x && flag(x); })
Sign in to make a reply
GodKeen粉