It runs and return no output, plz help me!!!

Tks,

```
function checkPrime(num) {
if (num == 1) return false
for (i=2; i <= Math.sqrt(num); i++) {
if (num % i == 0) return false;
}
return true;
}
function sumPrimes(num) {
var result = 0;
for (i=2; i <= num; i++) {
if (checkPrime(i) == true) {
result += i;
}
}
return result;
}
var input = 10;
console.log(sumPrimes(input));
type or paste code here
```