Apocalyptic Number | Function to check if N isApocalyptic ; Given Number N ; Function Call
function isApocalyptic ( n ) { var x = Math . pow ( 2 , n ) ; if ( x . toString ( ) . indexOf ( ' ' ) ) return true return false } var N = 157 ; if ( isApocalyptic ( N ) ) document . write ( " " ) ; else document . write ( " " ) ;