mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-09-22, 19:54   #617
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

because I would never know when all candidates end so I could never stop.
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 20:04   #618
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

597910 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
because I would never know when all candidates end so I could never stop.
What does that even mean? "when all candidates end"


OK, maybe I need to find something easier, or at least different. How about this: you know how to calculate the odds of finding 0 primes with a given N and L. Can you create a function that reverses this? Say someone wants to sieve a range to a given L such that the range contains 0 primes with probability 1% (that is, the range is 99% likely to have primes).

Last fiddled with by CRGreathouse on 2010-09-22 at 20:04
CRGreathouse is offline   Reply With Quote
Old 2010-09-22, 20:37   #619
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

well the probability that a candidate isn't prime is the opposite to if it is so reverse the fraction:

Code:
(17:36) gp > poisson3(N,t,n) = n!/(((t/log(N))^n)*exp(-(t/log(N))))
%260 = (N,t,n)->n!/(((t/log(N))^n)*exp(-(t/log(N))))
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 20:52   #620
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

I was looking for a function that, given a probability p (and N, t, L), would give an n such that

estimatePrimes(N,t,n,L)

is 1 - p.
CRGreathouse is offline   Reply With Quote
Old 2010-09-22, 21:18   #621
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Submissions: 37092 * 560872890 + 1 (13729 digits)

Prime with prime number of digits.

Qualified for item 5.

Last fiddled with by 3.14159 on 2010-09-22 at 21:18
3.14159 is offline   Reply With Quote
Old 2010-09-22, 22:55   #622
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

if we could reverse engineer the first to find n we won't need to use L
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 23:24   #623
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

did I mention the hard part is getting the last n out of the logarithm lol
science_man_88 is offline   Reply With Quote
Old 2010-09-22, 23:26   #624
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
if we could reverse engineer the first to find n we won't need to use L
No, because you get different n depending on L.

Suppose N = 10^100. If L < 2 then n is 1064: you need to pick 1064 numbers near a googol to find a prime with 99% certainty. If L = 1000, then n is 87: you don't need to pick nearly so many numbers if you know that none have prime divisors smaller than a thousand.
CRGreathouse is offline   Reply With Quote
Old 2010-09-22, 23:26   #625
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Is the above the code for Charles's (grammatical error?) request?
3.14159 is offline   Reply With Quote
Old 2010-09-22, 23:27   #626
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by Charles
Suppose N = 10^100. If L < 2 then n is 1064: you need to pick 1064 numbers near a googol to find a prime with 99% certainty. If L = 1000, then n is 87: you don't need to pick nearly so many numbers if you know that none have prime divisors smaller than a thousand.
How about if I knew the numbers in question had no divisors smaller than 167772161?
3.14159 is offline   Reply With Quote
Old 2010-09-22, 23:33   #627
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

597910 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
How about if I knew the numbers in question had no divisors smaller than 167772161?
Maybe you can ask sm that question once he finishes the script!

32
CRGreathouse is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime posting thread, part 2. (With a catch.) 3.14159 Miscellaneous Math 55 2010-11-19 23:55
Tiny range request .... 555.1M petrw1 LMH > 100M 1 2010-07-13 15:35
Other primes thread nuggetprime No Prime Left Behind 32 2009-10-21 21:48
Error: tiny factoring failed 10metreh Msieve 26 2009-03-08 23:28
Tiny error on nfsnet pages. antiroach NFSNET Discussion 1 2003-07-08 00:27

All times are UTC. The time now is 21:46.


Fri Aug 6 21:46:49 UTC 2021 up 14 days, 16:15, 1 user, load averages: 2.41, 2.47, 2.52

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.