function isPrime(num) {
    for (var i = 2; i < num; i++) {
        if (num % i === 0) {
            return false;
        }
    }
    return true;
}
// returns true if the given num is a prime number
returns true if the given num is a prime number
returns true if the given num is a prime number
function isPrime(num) {
    for (var i = 2; i < num; i++) {
        if (num % i === 0) {
            return false;
        }
    }
    return true;
}
function isPrime ( num ) { for ( var i = 2 ; i < num ; i ++ ) { if ( num % i === 0 ) { return false ; } } return true ; }
returns true if the given num is a prime number
returns true if the given num is a prime number