- leavemsg1 wrote:
> First,... is pi(4,000,000) approximately 283,010?

Yes it does, but your program is awfully slow.

>

> If so, then what is the error?

>

> My computer doesn't have enough power to find the exact number.

pi(4,000,000) = 283146

http://primes.utm.edu/nthprime can find pi(x) for x < 3*10^13.

(That page isn't working for me now)

Tomás Oliveira e Silva has tables of pi(x) for round x up to 4*10^22:

http://www.ieeta.pt/~tos/primes.html

--

Jens Kruse Andersen - --- leavemsg1 <leavemsg1@...> wrote:
> Hello, Group.

Yes.

>

> First,... is pi(4,000,000) approximately 283,010?

> If so, then what is the error?

less than sqrt(n), approximately log(n)^2.

> My computer doesn't have enough power to find the exact number.

I have a 68HC908 on my desk at the moment, I suspect that even

that has enough power to perform such a computation.

Phil

() ASCII ribbon campaign () Hopeless ribbon campaign

/\ against HTML mail /\ against gratuitous bloodshed

[stolen with permission from Daniel B. Cristofani]

__________________________________________________

Do You Yahoo!?

Tired of spam? Yahoo! Mail has the best spam protection around

http://mail.yahoo.com > http://primes.utm.edu/nthprime can find pi(x) for x < 3*10^13.

Repaired. I replaced the broken server with a new one

> (That page isn't working for me now)

a week or so ago and still am having trouble getting SELinux

security contexts set right. But those are now linking.

Mail me off list of anything else not working

Chris