Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > apocalyptic num...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4049 of 4146
Post > Topic >>

apocalyptic number program

by rajshekhar3@[EMAIL PROTECTED] Sep 23, 2008 at 10:33 PM

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 :)
 




 2 Posts in Topic:
apocalyptic number program
rajshekhar3@[EMAIL PROTEC  2008-09-23 22:33:57 
Re: apocalyptic number program
pjb@[EMAIL PROTECTED] (P  2008-09-24 07:49:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 8:19:06 CST 2008.