mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Sierpinski/Riesel Base 5

Reply
 
Thread Tools
Old 2008-10-18, 04:43   #78
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11·577 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Hmm...I see. So, when it reduces the base due to a rounding error, does that mean that it's not doing a base 3 test any more, and thus the final result won't be compatible with LLR?
BTW, the "reducing base" message is an 0.51 feature, not a 0.50 feature. 0.50 will finish the test even though the maxerr has reached 0.5000. 0.51 will stop immediately.

phrot is saying that the maxerr exceeded 0.5000 and that it has to reduce the base (from 1594323 to 531441 to 177147, which are all powers of 3) to get the error under 0.5000. If the maxerr reaches 0.5000, then the PRP test will be considered a failure, i.e. incorrect final result. In my experiences with phrot, this is only an issue with bases that are powers of 2 and I would guess that when k is a power of 2 that it also has an issue. The best option might be to just have phrot not perform the test in these circumstances. You can get it to work, but you need to adjust the value for -a to reduce that base. Personally I would rather not screw around trying to get phrot to work (for these numbers) and would use LLR instead.

Phil has not spent much time on the issue. I suspect the bug really lies in YEAFFT (an undetected overflow or underflow), but Guillermo has never responded to my inquiries. Phil is probably the most capable person to find the real cause of the problem and fix it.
rogue is offline   Reply With Quote
Old 2008-10-18, 17:46   #79
Cruelty
 
Cruelty's Avatar
 
May 2005

23×7×29 Posts
Default

Here's a final summary:
Code:
PRP
2*3^395004-1 is not prime.  RES64: 9C449D92F2BA7CC8.  OLD64: C214EADD85530CF4
2*3^395006-1 is not prime.  RES64: CAEC92FA11986CAC.  OLD64: 60C5B8EE34C94601

LLR
2*3^395004-1 is not prime.  RES64: 9C449D92F2BA7CC8.  OLD64: C214EADD85530CF4  Time : 1888.625 sec.
2*3^395006-1 is not prime.  RES64: CAEC92FA11986CAC.  OLD64: 60C5B8EE34C94601  Time : 1877.681 sec.

Phrot
2*3^395004-1 [-765338,-352545,278355,-34009] is composite LLR64=8dab4c98fe311ea5. (t=1377.47s)
2*3^395006-1 [482334,680402,-572288,-554118] is composite LLR64=14fad53b089f5bbc. (t=1407.36s)

Phrot -a1
2*3^395004-1 [-765338,-352545,278355,-34009] is composite LLR64=8dab4c98fe311ea5. (t=1359.25s)
2*3^395006-1 [482334,680402,-572288,-554118] is composite LLR64=14fad53b089f5bbc. (t=1357.48s)

Phrot -a2
2*3^395004-1 [-765338,-352545,278355,-34009] is composite LLR64=8dab4c98fe311ea5. (t=1376.84s)
2*3^395006-1 [482334,680402,-572288,-554118] is composite LLR64=14fad53b089f5bbc. (t=1373.75s)
PRP and LLR residues match, and Phrot regardless of the options used generates bad residue.
Cruelty is offline   Reply With Quote
Old 2008-10-18, 19:07   #80
axn
 
axn's Avatar
 
Jun 2003

13BD16 Posts
Default

Hmm... Explicitly running the "reduced" form in 0.50
Code:
phrot.50.exe -b=3 -q "486*177147^35909-1"
Actually testing 486*177147^35909-1 (35910/73728 limbs)
486*177147^35909-1 [-59983,508,76549,-40851] is composite LLR64=9C449D92F2BA7CC8. (e=0.27984 (0.00550104~4.7058e-14@1.955) t=3338.61s)
axn is online now   Reply With Quote
Old 2008-10-18, 19:49   #81
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11·577 Posts
Default

Quote:
Originally Posted by axn1 View Post
Hmm... Explicitly running the "reduced" form in 0.50
Code:
phrot.50.exe -b=3 -q "486*177147^35909-1"
Actually testing 486*177147^35909-1 (35910/73728 limbs)
486*177147^35909-1 [-59983,508,76549,-40851] is composite LLR64=9C449D92F2BA7CC8. (e=0.27984 (0.00550104~4.7058e-14@1.955) t=3338.61s)
I've sent an e-mail to Phil. We'll see if he has anything to offer on this issue.
rogue is offline   Reply With Quote
Old 2008-10-18, 20:23   #82
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by rogue View Post
BTW, the "reducing base" message is an 0.51 feature, not a 0.50 feature. 0.50 will finish the test even though the maxerr has reached 0.5000. 0.51 will stop immediately.

phrot is saying that the maxerr exceeded 0.5000 and that it has to reduce the base (from 1594323 to 531441 to 177147, which are all powers of 3) to get the error under 0.5000. If the maxerr reaches 0.5000, then the PRP test will be considered a failure, i.e. incorrect final result. In my experiences with phrot, this is only an issue with bases that are powers of 2 and I would guess that when k is a power of 2 that it also has an issue. The best option might be to just have phrot not perform the test in these circumstances. You can get it to work, but you need to adjust the value for -a to reduce that base. Personally I would rather not screw around trying to get phrot to work (for these numbers) and would use LLR instead.

Phil has not spent much time on the issue. I suspect the bug really lies in YEAFFT (an undetected overflow or underflow), but Guillermo has never responded to my inquiries. Phil is probably the most capable person to find the real cause of the problem and fix it.
Ah, I get it now--it seems that there are a number of different contexts in which the word "base" is used to describe various aspects of PRP testing, that was the source of my confusion.
mdettweiler is offline   Reply With Quote
Old 2008-10-19, 01:18   #83
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

100100001012 Posts
Default

phrot-0.51-bin.zip includes the error-checking (*_e) executables too.
geoff is offline   Reply With Quote
Old 2008-10-26, 07:04   #84
Cruelty
 
Cruelty's Avatar
 
May 2005

23×7×29 Posts
Default

Is it OK to assume that running the error-checking version of Phrot is safe in terms of getting correct results? In my case (2*3^n-1 and 4*3^n-1) it is still faster than LLR/PRP by ~6% and results are OK too
Cruelty is offline   Reply With Quote
Old 2008-10-26, 12:15   #85
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11·577 Posts
Default

Quote:
Originally Posted by Cruelty View Post
Is it OK to assume that running the error-checking version of Phrot is safe in terms of getting correct results? In my case (2*3^n-1 and 4*3^n-1) it is still faster than LLR/PRP by ~6% and results are OK too
If running 0.51, yes, but not 0.50. I modified the error checking version of 0.51 to consider maxerr over 0.40 to be a bad test rather than the customary 0.50. That is because I was getting invalid results when maxerr was > 0.40 and < 0.50. I don't know what the true lower bound for a bad test is, but I presume that it was closer to 0.45 or a little higher. I probably decided to be too cautious, but I would rather error on the side of caution than not.
rogue is offline   Reply With Quote
Old 2008-10-31, 17:34   #86
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

2·151 Posts
Default Own compilation

I've managed to compile phrot myself on my quad and it seems to don't produce the reported errors.My version is also ~28 percent faster than Geoff's port.

--nuggetprime
Attached Files
File Type: gz phrot_spe.tar.gz (160.5 KB, 122 views)
nuggetprime is offline   Reply With Quote
Old 2008-10-31, 17:41   #87
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31×67 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
I've managed to compile phrot myself on my quad and it seems to don't produce the reported errors.My version is also ~28 percent faster than Geoff's port.

--nuggetprime


Would it be possible to compile it with a StopOnPRP option? It could then be used instead of cLLR here:
http://mersenneforum.org/showthread.php?t=10864

Last fiddled with by Flatlander on 2008-10-31 at 17:47 Reason: Changed LLR to cLLR
Flatlander is offline   Reply With Quote
Old 2008-10-31, 18:37   #88
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

2×151 Posts
Default

Quote:
Originally Posted by Flatlander View Post


Would it be possible to compile it with a StopOnPRP option? It could then be used instead of cLLR here:
http://mersenneforum.org/showthread.php?t=10864
let me experiment...

--nuggetprime
nuggetprime is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
PRPNET & Phrot discussion masser Sierpinski/Riesel Base 5 27 2010-09-08 03:10
Phrot announcements rogue Conjectures 'R Us 33 2010-01-22 19:39
LLR/PRP/phrot/pfgw:- Pick A Range masser Sierpinski/Riesel Base 5 8 2009-08-18 19:44
Using Phrot For LLRNET Reservations thommy Sierpinski/Riesel Base 5 1 2008-11-03 14:53
Programmer needed to write networked Phrot app! mdettweiler Programming 0 2008-04-07 21:25

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


Sat Jul 17 09:16:28 UTC 2021 up 50 days, 7:03, 1 user, load averages: 1.97, 1.76, 1.65

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.