Check whether 2 ^ q - 1 is a prime number or not
if ( isPrime ( Math . floor ( Math . pow ( 2 , pow + 1 ) ) - 1 ) ) document . write ( " " ) ; else document . write ( " " ) ; } else document . write ( " " ) ; } else document . write ( " " ) ; }