When I check the number to see if it is prime via the Or Boolean statement, it does not complete the check, and it returns the entire array.
function sumPrimes(num) {
var arr = [];
var prime;
for(var i = 1; i <=num; i++){
if(i%2 !== 0 || i%3 !== 0 || i%5 !== 0){
arr.push(i);
}
}
return arr;
}
sumPrimes(10);