Function to check whether a string is a prime number or not
function checkPrime ( number ) { let num = String ( number ) ; for ( let i = 2 ; i * i <= num ; i ++ ) if ( ( num % i ) == 0 ) return false ; return true ; }