**What’s happening:**

I don’t know why the code doesn’t seem to work with 10001 on fcc, but using node it does. Someone has any idea of why?

Thanks

**My code so far**

```
const nthPrime = (number) => {
let primes = [2];
for(let i = 3; primes.length <= number; i+= 2) {
if(primes.every(v => i % v !== 0)) {
primes.push(i);
if(primes.length === number) return i;
}
}
}
nthPrime(10001);
```

**My browser information:**

User Agent is: `Chrome/68.0.3440.84`

.

**Link to the challenge:**

https://learn.freecodecamp.org/coding-interview-prep/project-euler/problem-7-10001st-prime