Author 
Message 
Aegis2

Posted: Tue Feb 16, 2010 9:12 pm Post subject: Its about a googolplex! 


Somebody decided to challenge himself. In writing a program that will write out a googolplex in its expanded form, i.e 1 and a googol zeroes behind it. They decided to use a computer since its the fastest thing around. So anyways, this is the program they used, its on turing by the way.
var output : int
open : output, "Googol.txt", put
put : output, "1" ..
for a : 1 .. 100000
for b : 1 .. 100000
for c : 1 .. 100000
for d : 1 .. 100000
for e : 1 .. 100000
for f : 1 .. 100000
for g : 1 .. 100000
for h : 1 .. 100000
for i : 1 .. 100000
for j : 1 .. 100000
for k : 1 .. 100000
for l : 1 .. 100000
for m : 1 .. 100000
for n : 1 .. 100000
for o : 1 .. 100000
for p : 1 .. 100000
for q : 1 .. 100000
for r : 1 .. 100000
for s : 1 .. 100000
for t : 1 .. 100000
put : output, "0"..
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
end for
close : output
It took aprox. 1hour to finish this run and the file turned out to be under 2 gb. I just want to ask if it is possible that this could be done, if its possible to write out a googol 0s. Though, remember a googolplex is ten to the power of a googol. And a googol is ten to the power of 100. Or search it up on google if you don't know what it is still.
My opinion towards this, is that Turing didn't run the whole thing, it stopped somewhere because the file is getting too large or the comp can't handle anymore, but anyways it could also be something wrong with the code, just look it through and see if it's is even possibe. 





Sponsor Sponsor



chrisbrown





Aegis2

Posted: Tue Feb 16, 2010 10:24 pm Post subject: Re: Its about a googolplex! 


Well could you explai. To them why it is impossible? Well I know but they seem convinced that they reached a googol zero just because the program stopped running. They won't believe my explanation so I want a third person to justify with me. 





DtY

Posted: Tue Feb 16, 2010 10:33 pm Post subject: RE:Its about a googolplex! 


If it finished, the output should be 10**100+1 bytes (a single one, followed by a googol zeroes), which is 8881784197001252323389053344726562500000000000000000000000000000000000000000000000000 pB
This number is just a little bit bigger than 2gB, so it can't be storing the number.
I imagine that 2gB is the file size limit on your filesystem. 





Tony





Turing_Gamer

Posted: Wed Feb 17, 2010 8:21 am Post subject: Re: Its about a googolplex! 


What language are you using? C++? 





USEC_OFFICER

Posted: Wed Feb 17, 2010 12:44 pm Post subject: RE:Its about a googolplex! 


He said turing. 





Turing_Gamer

Posted: Thu Feb 18, 2010 8:35 am Post subject: Re: Its about a googolplex! 


Oh sorry didn't catch that... *Feels Embarassed * 





Sponsor Sponsor



USEC_OFFICER

Posted: Thu Feb 18, 2010 12:40 pm Post subject: RE:Its about a googolplex! 


It's ok, we all do it. 





