L0standfound

#1 Created at ... [Delete] [Delete and Lock User]

return arr.filter(function(x){ if(x == 1){ return false; } for(var i=2; i<x; i++){ if(x%i == 0){ return false; } } return true; })


  • 1

Reply