Thing is I do believe I already built the code that make it happen, the problem is that I'm trying to use it as an answer for the challenge at [jschallenger.com](https://www.jschallenger.com/javascript-basics/return-prime-number/challenge?id=5f082fa739c6fe165eb9f599), but the page do not accept my code as a valid answer.

Can anyone explain to me why the site does not accepts my code and how I can fix it? My code is right, right?

Here is my code:

```js
function checkPrime(number) {
  for (var i = 2; i < number; i++) {
    if (number % i === 0) {
      return false;
    }
  }
  return true;
}

function myFunction(number) {
  if (checkPrime(number)) {
    return number;
  } else {
    while (checkPrime(number) === false) {
      number++;
    }
  }
  return number;
}

console.log(myFunction(38)); //the return should be 41
console.log(myFunction(7)); //the return should be 7
console.log(myFunction(115)); //the return should be 127
console.log(myFunction(2000)); //the return should be 2003
```