return arr.filter(function(x){ if (x === 1) return false; var bound = Math.sqrt(x); for(let i = 2; i<=bound; i++){ if(x%i === 0) return false; } return true; });
Sign in to make a reply
两仪藤乃