Apocalyptic Number | Function to check if a number N is Apocalyptic ; Given Number N ; Function Call
def isApocalyptic ( n ) : NEW_LINE INDENT if '666' in str ( 2 ** n ) : NEW_LINE INDENT return True NEW_LINE DEDENT return False NEW_LINE DEDENT N = 157 NEW_LINE if ( isApocalyptic ( 157 ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT