Check whether the given number be divide by other prime numbers
for ( let i = 5 ; i <= Math . floor ( Math . sqrt ( n ) ) ; i += 6 ) { if ( n % i == 0 || n % ( i + 2 ) == 0 ) return false ; } return true ; } }