mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2007-11-10, 11:24   #12
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by henryzz View Post
how without counting the primes can i work this out

i want to use this for hopefully having p and q being 100 digit primes
how long do u think ( pi(p^2) - pi(q^2) )/ (p^2 - q^2 ) would take if p and q are 100 digit primes

is there a quick way
Yes, there is a quick way. You use Google to find sites which explain how to calculate pi(x), either exactly or to an adequate approximation, and then plug in the numbers you want to use.

Please stop expecting people to do work for you that you can do for yourself very easily, and with less effort all round.

As several posters have said before, you'll find people here very willing to help you if you've made an honest attempt to solve your problems but then get stuck. If you don't show you've made such an attempt, those people will either become hostile or will ignore you completely --- on this occasion and when you ask for help later.


Paul

Last fiddled with by xilman on 2007-11-10 at 11:25
xilman is offline   Reply With Quote
Old 2007-11-10, 16:30   #13
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

23·3·5·72 Posts
Default

sorry i hadnt heard of pi(x) and for soom reason i didnt think of googling it
henryzz is offline   Reply With Quote
Old 2007-11-10, 16:44   #14
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

1001101000112 Posts
Default

If you are seriously interested in learning about number theory and primes in particular, the book by Crandall and Pomerance: Prime Numbers would make an excellent starting point. The prime counting function and approximations to it are among the many things explained in it.

Alex
akruppa is offline   Reply With Quote
Old 2007-11-11, 01:44   #15
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

35×13 Posts
Default

http://mathworld.wolfram.com/PrimeNumberTheorem.html

You can estimate pi(n) by:

0.922*n/ln(n) < pi(n) < 1.105*n/ln(n)
ATH is offline   Reply With Quote
Old 2007-11-11, 14:44   #16
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

164448 Posts
Default

Quote:
Originally Posted by ATH View Post
http://mathworld.wolfram.com/PrimeNumberTheorem.html

You can estimate pi(n) by:

0.922*n/ln(n) < pi(n) < 1.105*n/ln(n)
This is much too crude an estimate. Much better estimates are
available.

Look up "Rosser & Schoenfeld" and "Robin"
R.D. Silverman is offline   Reply With Quote
Old 2007-11-11, 16:21   #17
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
This is much too crude an estimate. Much better estimates are available.

Look up "Rosser & Schoenfeld" and "Robin"
Crudity depends on circumstances.

When, for example, I want to estimate how many relations will be needed to complete a NFS factorization I us 0.8*(pi(LPB1) + pi(LPB2). That estimate is so crude, and yet sufficiently accurate for the purpose, that approximating pi(x) as x/(ln(x)-1) is easily adequate and very simple to calculate.

(LPB1 and LPB2 are the Large Prime Bounds on the algebraic and rational sides, though not necessarily in that order.)

Paul
xilman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
DC chance to find Mersenne Prime houding PrimeNet 1 2014-02-24 20:25
Chance of finding new prime number formulas? columbus Information & Answers 49 2013-03-07 22:36
Sandy Bridge CPU Usage only 50 percent dmoran Software 3 2011-06-14 21:21
area by percent of sun in sky Mini-Geek Puzzles 29 2009-03-19 22:22
Why 100 percent???? Jack007 Lounge 19 2002-11-17 01:35

All times are UTC. The time now is 09:59.


Sat Jul 17 09:59:14 UTC 2021 up 50 days, 7:46, 1 user, load averages: 1.30, 1.26, 1.25

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.