PDA

View Full Version : How do I build a website busy computing Pi?



a76642588
10 Jul 2010, 03:14 AM
Hey guys,

I am wondering how I could build a website, that all it does is just computing Pi(3.1415...) forever days and nights. And when a user accesses it, it simply shows the current result (the last few digits are enough, since the complete result has trillions of digits)

question 1:
What knowledge do I need to learn?
I know some php and JavaScript already.

question 2:
where can I register for such a server? If it is free, even better.
(come on, leaving my desktop at home on all day as the host does NOT count as an answer:smash:)

Thanks a lot.

MaintainedAuto
11 Jul 2010, 01:31 PM
Honestly, it might be easier to build a program that searches a website for the most recent answer.

Computing the answer to pie has been going on for literally decades and the longer the digits... the more computer power it requires to find the next digit. A single box wouldn't be able to handle the data for it. You would need several machines.

And also... last time I checked the majority of the world is only interested in maybe the first 10 decimals. That's just me though.