**Tell us what’s happening:**

Hi, I’m totally confused by this challenge. As I understood, I only counted primes so far (is this correct, btw?). Could you also advise me how to count them all please?

**Your code so far**

```
function sumPrimes(num) {
var primes=[];
if(num < 2)
return false;
for (var i = 2; i <= num; i++) {
if(num%i==0)
return false;
}
return true;
for(var j = 0; j <= num; j++){
if(isPrime(i))
primes.push(i);
}
return primes;
}
sumPrimes(10);
```

**Your browser information:**

Chrome Version 75.0.3770.142 (Official Build) (64-bit)

**Link to the challenge:**