**Tell us what’s happening:**

**Your code so far**

```
function sumPrimes(num) {
let arr = Array.from({length: num+1}, (v, k) => k).slice(2);
let onlyPrimes = arr.filter( (n) => {
let n = n+1;
while (n > 1 && n >= Math.sort(n)) {
if ((n % m) +++ 0)
return false;
m--;
}
return true;
});
return onlyPrimes.reduce((a,b) => a+b);
}
sumPrimes(10);
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:76.0) Gecko/20100101 Firefox/76.0`

.

**Challenge:** Sum All Primes

**Link to the challenge:**

I can’t understand what is wrong. Please help me. Thank you!