Check whether 2 ^ q - 1 is a prime number or not
if ( isPrime ( ( int ) ( pow ( 2 , poww + 1 ) ) - 1 ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT else : NEW_LINE print ( " No " ) NEW_LINE else : NEW_LINE print ( " No " ) NEW_LINE