**Tell us what’s happening:**

Well, this code seems like true, but i know that something’s wrong, it passes 2 challenges but not really close to passing 3rd. Pls give me a hint cuz i cant’t really find stuff to change atm.

**Your code so far**

```
function sumPrimes(num) {
let numb=1;
let deleter=1;
let count=0;
let sum=0;
for (numb;numb<=num;numb++){
if (count===2){
sum+=numb-1;
}
count=0;
for(divider=1;divider<=num;divider++){
if (Number.isInteger(numb/divider)===true){
count++;
}
}
}
return sum;
}
sumPrimes(977);
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0`

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-primes/