Write a program which tests the Apocalyptic number.
An Apocalyptic number is:
"A number of the form 2^n that contains the digits 666 (i.e., the
beast number) is called an apocalyptic number.The first few such
powers are 157, 192, 218, 220, ..."
The list goes on....
Program should only take power(n) as input (which is 2^n ) for any
given values as said above
and the output should whether this power will form apocalyptic number
or not.
So here my data type should be capable enough to hold for any
(dynamic
in nature)powered number which may run into 50's
or 100' digits of generated out of 2^n.
FOr example like
2^499 is 'apocalyptic':
163669530394807093500659484841379957610832102302153239474164568404806689820=
=AD=AD
233727744163504616295207857544334206378003550460862827294269652666426379468=
=AD=AD
8
P.S: you need to print that value from ur data structure used for
storing it not the direct output of
pow(2,n) !!!
For any clarifications write back :)