mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-08-03, 16:36   #221
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

Quote:
Originally Posted by CRGreathouse
For some meaning of "guarantee", at least.

Of course as I've said, if you're looking to get that kind of certainty you'd be better off with one Miller-Rabin and a few applications of some modern test, e.g. Damgård-Frandsen; for the time it would take you to do 10 M-Rs (1 M-
R + 3 D-F), you can get higher confidence than you'd get for 30 M-Rs: 1/142657607172096 vs. only 1/1073741824. They're better in the average case, too.
... The actual odds of failure for 30 Miller-Rabin tests is at worst 1 in 430, which is 1 in 1152921504606846976.

Quote:
Originally Posted by CRGreathouse
Sure, because ispseudoprime() is stronger. If you want just one test do
Code:
ispseudoprime(n, 1)
BPSW. Also, what is their trial factor limit?

Last fiddled with by 3.14159 on 2010-08-03 at 16:38
3.14159 is offline   Reply With Quote
Old 2010-08-03, 17:21   #222
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
... The actual odds of failure for 30 Miller-Rabin tests is at worst 1 in 430, which is 1 in 1152921504606846976.
Sorry, copying between too many screens. I'll let you look up better limits for various tests (depending, in some cases, on the value of n mod 4 and how many tests you do) if you really care about the right answer. In the long run, for every M-R worth of testing you do on these modern tests, you improve the worst case by something like 1/64 rather than 1/4.
CRGreathouse is offline   Reply With Quote
Old 2010-08-03, 17:24   #223
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
BPSW. Also, what is their trial factor limit?
Looks like trial division up to 101 (using 2-3 gcd operations rather than 26 divisions):
http://pari.math.u-bordeaux.fr/cgi-b...2380&root=pari

It's in BPSW_psp(GEN N).
CRGreathouse is offline   Reply With Quote
Old 2010-08-03, 17:40   #224
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
I didn't follow that, what's the question? What do you mean by polynomial tests? Aren't *what* supposed to prove a number prime? (Surely not a function named ispseudoprime()...?)
Nevermind, I didn't understand what I posted either. I'm deleting that post.
3.14159 is offline   Reply With Quote
Old 2010-08-03, 19:48   #225
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

Also: For the sieving in k * 2256720 + 1, I've sieved up to 4 * 1012. For k * 11328720 + 1, I've sieved up to 9.28 * 1011 .

My range is in between 500 and 780000, so I checked for the exponent in the Proth Search database to ensure I would not bump into any previously discovered prime numbers. Luckily, there have been no primes discovered prior to mine, and the exponent is too small to be considered reserved.

There are just under 15000 candidates left out of the original 389750. (1 in 26.)

Last fiddled with by 3.14159 on 2010-08-03 at 20:02
3.14159 is offline   Reply With Quote
Old 2010-08-04, 02:28   #226
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by axn View Post
Various projected milestones
Code:
p=6.34e12: 1 in 15
p=4.52e13: 1 in 16
p=3.23e14: 1 in 17
p=2.30e15: 1 in 18
p=1.64e16: 1 in 19
p=1.17e17: 1 in 20
PS:- These numbers are specific for your current sieve.
How do you calculate these for a given sieve? I know how to estimate (and even calculate, for small limits) the efficiency of a general sieve over a large region, but what adaptations do you make for particular exponents?
CRGreathouse is offline   Reply With Quote
Old 2010-08-04, 02:53   #227
axn
 
axn's Avatar
 
Jun 2003

5,087 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
How do you calculate these for a given sieve? I know how to estimate (and even calculate, for small limits) the efficiency of a general sieve over a large region, but what adaptations do you make for particular exponents?
Exponents? Nothing. Base. Now that's the ticket!

All I do is a straight application of Merten's theorem, plus accounting for forced factors (well, non-factors).

His search used base 12096, which removes 2,3,7.

Last fiddled with by axn on 2010-08-04 at 02:56
axn is offline   Reply With Quote
Old 2010-08-04, 03:48   #228
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by axn View Post
Exponents? Nothing. Base. Now that's the ticket!
Yeah... brainfart. That's what I meant.

Quote:
Originally Posted by axn View Post
All I do is a straight application of Merten's theorem, plus accounting for forced factors (well, non-factors).
Did you see P. Dusart's recent paper on the arXiv? It has quite good effective bounds on Mertens' Theorem. (I emailed the author with a minor error in the preprint; he hasn't responded yet, though. I hope I used the right address!)
CRGreathouse is offline   Reply With Quote
Old 2010-08-05, 14:35   #229
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Submissions:

Code:
13991459166294200349680409140910964331078980374838150413700111716409694957060219658540447446756804361737932171824532662997234491730381614642363532665776678394716892240574049843516456950533421259405132328505718016034215746811533357813986959213666784945588235540252623517564817527633474134033298838625662883505013729651558589056101205323970721955962415337977073133649083350457715256417602450217117774622497307698691202557586313846613095334028019780818625804565991075363703402520377598825424912508289232694776392688553780878438641711046390631490071444361097202489902969407082807657017476878281826626913717898537100746516117738676468945127219151744799867002319817032153856297965631021611064597836390940853102170519838315128163398914072476606006303098534758983771427620885590501903178419997114479326261985894431130402237332691663179096260355771163447795362667420490977580311242677753460711830695283208804907464711639297673965718581883688202164764327343211649282543591248714175220876925095188511669958610763031058502568100805190761741005184892572051797330336944497775895745769809988299792529995616223239672145430849270728473247859123784388391310947496824092753429167605879966442789885851797572329967067607025388711741412892934718553465970838546320888270553454010551015781225521167085537543623092504674044423624936309832247671763656052062372104699888960577966799051015709888160537102583143464105996295290949721364403491851778570038395589091148873133068821041657761628525480567471055398173749590909327604976655322152443559492236244699816812255644465066816667652348468356020617378207978659136929793 (1589 digits)
3.14159 is offline   Reply With Quote
Old 2010-08-05, 16:32   #230
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Also: Testing for k * 2256720 + 1

It tempts me to look for a 105-digit prime... (The above range is only 77284 to 77287 digits)

Submissions: (I won't be listing amount of decimal digits anymore):

5913*2^7560+1
9387*2^7560+1
25495*2^7560+1
11761*2^15560+1
15283*2^15560+1
18993*2^15560+1
3627*2^21820+1
4933*2^21820+1
7483*2^21820+1
34021*2^21820+1
40233*2^21820+1
61285*2^21820+1
71511*2^21820+1
76381*2^21820+1
6615*2^5260+1
9373*2^5260+1
19333*2^5260+1
19341*2^5260+1
20743*2^5260+1

Last fiddled with by 3.14159 on 2010-08-05 at 16:44
3.14159 is offline   Reply With Quote
Old 2010-08-05, 19:23   #231
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Also: I remember downloading an app which sieved for Generalized Fermat numbers. Unfortunately, it was over at the second computer. I looked everywhere for it, and unfortunately could not remember where I downloaded it from. Note that it was not command-lined, but a separate app, like NewPGen and MultiSieve.

If anyone manages to find the app, post the link.

Update: Methinks I found it, although I face limited/no connectivity.
Update, again: Nope. Fluke.
Update, again: File found

Last fiddled with by 3.14159 on 2010-08-05 at 19:43
3.14159 is offline   Reply With Quote
Reply

Thread Tools


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 15:01.


Fri Aug 6 15:01:22 UTC 2021 up 14 days, 9:30, 1 user, load averages: 3.20, 2.89, 2.84

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.