mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Reply
 
Thread Tools
Old 2009-03-19, 16:51   #12
Shaopu Lin
 
Shaopu Lin's Avatar
 
Jul 2004

24·3 Posts
Default There seems to be a bug in Phrot 0.68

Testing the primality of Generalized Fermat number 824^1024+1 by Phrot 0.68, it shows that it is composite.

Code:
math@linux-0rdr:~/Desktop/other> phrot -q 1*824^1024+1
Phil Carmody's Phrot (0.68)
Input 1*824^1024+1 :  Actually testing 1*678976^512+1 (witness=3 513/1152 limbs)
1*824^1024+1 is composite LLR64=0000000000000001. (t=0.29s)
But doing the same test by LLR and pari-gp, LLR shows that it is probable prime and pari-gp shows that it is prime.

Here are the results doing by LLR with llr -q"1*824^1024+1",
Code:
824^1024+1 is a probable prime.  Time : 285.661 ms.
Please credit George Woltman's PRP for this result!
, and doing by pari-gp.
Code:
math@linux-0rdr:~/Desktop/other> gp
Reading GPRC: /home/math/.gprc ...Done.

                 GP/PARI CALCULATOR Version 2.4.3 (development)
          amd64 running linux (x86-64/GMP-4.2.3 kernel) 64-bit version
compiled: Mar 13 2009, gcc-4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) 
                 (readline v5.2 enabled, extended help enabled)

                     Copyright (C) 2000-2008 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and comes 
WITHOUT ANY WARRANTY WHATSOEVER.

Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.

parisize = 8000000, primelimit = 500509
(00:37) gp > isprime(1*824^1024+1)
%1 = 1
(00:38) gp >

Last fiddled with by Shaopu Lin on 2009-03-19 at 16:53
Shaopu Lin is offline   Reply With Quote
Old 2009-03-19, 18:57   #13
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

18D016 Posts
Default

Quote:
Originally Posted by Shaopu Lin View Post
Testing the primality of Generalized Fermat number 824^1024+1 by Phrot 0.68, it shows that it is composite.

Code:
math@linux-0rdr:~/Desktop/other> phrot -q 1*824^1024+1
Phil Carmody's Phrot (0.68)
Input 1*824^1024+1 :  Actually testing 1*678976^512+1 (witness=3 513/1152 limbs)
1*824^1024+1 is composite LLR64=0000000000000001. (t=0.29s)
I'll look into it. I suspect it has something to do with the form more than anything else.
rogue is offline   Reply With Quote
Old 2009-04-22, 19:57   #14
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24×397 Posts
Default phrot issue

An issue has been discovered in phrot 0.68 that causes it to produce incorrect residues and miss primes for various bases. I recommend that anyone using phrot to use the -e switch until this issue is resolved.

Last fiddled with by rogue on 2009-04-22 at 19:58
rogue is offline   Reply With Quote
Old 2009-04-23, 00:39   #15
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

101000101000112 Posts
Default

Oh goodie. Now we need to rerun all of our tests where we had used Phrot 0.68. I'll have to see what version is running on my machine for bases 22 and 28. I've done a lot of n=100K-150K work there. Can you possibly isolate the specific conditions, residues, or patterns in the tests that created the incorrect residues? When I had a memory error in a laptop, I would frequently get the extremely small near-zero residues like what was found for the GFN test shown previously here. Perhaps I just need to look for residues with a whole bunch of leading zeros in them.

Does this apply to any other version of Phrot?

Last fiddled with by gd_barnes on 2009-04-23 at 00:42
gd_barnes is online now   Reply With Quote
Old 2009-04-23, 02:39   #16
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24×397 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
Oh goodie. Now we need to rerun all of our tests where we had used Phrot 0.68. I'll have to see what version is running on my machine for bases 22 and 28. I've done a lot of n=100K-150K work there. Can you possibly isolate the specific conditions, residues, or patterns in the tests that created the incorrect residues? When I had a memory error in a laptop, I would frequently get the extremely small near-zero residues like what was found for the GFN test shown previously here. Perhaps I just need to look for residues with a whole bunch of leading zeros in them.

Does this apply to any other version of Phrot?
AFAICT, there is no way to identify specific k/b/n/c values that have the issue. As far as I know it can happen in all versions.

I'm sorry that this is causing so many problems for people, but I'm working on getting it fixed.
rogue is offline   Reply With Quote
Old 2009-04-23, 07:26   #17
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31·67 Posts
Default

Perhaps it's worth others looking at the code to try to narrow down the k/n/b/c?

Or perhaps run LLR and compare the residues to narrow it down?

Last fiddled with by Flatlander on 2009-04-23 at 07:39
Flatlander is offline   Reply With Quote
Old 2009-04-23, 12:25   #18
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·397 Posts
Default

Quote:
Originally Posted by Flatlander View Post
Perhaps it's worth others looking at the code to try to narrow down the k/n/b/c?

Or perhaps run LLR and compare the residues to narrow it down?
I'm investigating, but have nothing to relate at this time.

I do know that error checking does catch the issue. Unfortunately it slows phrot down when error checking is turned on.
rogue is offline   Reply With Quote
Old 2009-04-23, 17:56   #19
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
Oh goodie. Now we need to rerun all of our tests where we had used Phrot 0.68. I'll have to see what version is running on my machine for bases 22 and 28. I've done a lot of n=100K-150K work there. Can you possibly isolate the specific conditions, residues, or patterns in the tests that created the incorrect residues? When I had a memory error in a laptop, I would frequently get the extremely small near-zero residues like what was found for the GFN test shown previously here. Perhaps I just need to look for residues with a whole bunch of leading zeros in them.

Does this apply to any other version of Phrot?
Gary, if you're running your base 22 and 28 work on one of your quads, and you haven't upgraded Phrot on any of them since I set it up for you, then you're still using 0.51.

Not that will help matters much, though, considering that the bug could affect all versions...

Last fiddled with by mdettweiler on 2009-04-23 at 17:56
mdettweiler is offline   Reply With Quote
Old 2009-04-23, 18:16   #20
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·397 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Gary, if you're running your base 22 and 28 work on one of your quads, and you haven't upgraded Phrot on any of them since I set it up for you, then you're still using 0.51.

Not that will help matters much, though, considering that the bug could affect all versions...
If he is getting residues (i.e. error checking is turned on) AND phrot was built with the patched YEAFFT, then his results would be valid.
rogue is offline   Reply With Quote
Old 2009-04-24, 05:52   #21
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

11000011010012 Posts
Default

Quote:
Originally Posted by rogue View Post
If he is getting residues (i.e. error checking is turned on) AND phrot was built with the patched YEAFFT, then his results would be valid.
Hmm...I could have sworn that version 0.51 had error checking built into a separate binary. I know that it was built with a fully patched (at least at the time--I don't think there were any further patches, right?) version of YEAFFT. Does this mean that he's vulnerable to errors?
mdettweiler is offline   Reply With Quote
Old 2009-04-24, 12:04   #22
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11000110100002 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Hmm...I could have sworn that version 0.51 had error checking built into a separate binary. I know that it was built with a fully patched (at least at the time--I don't think there were any further patches, right?) version of YEAFFT. Does this mean that he's vulnerable to errors?
If using 0.51 with a patched version of YEAFFT, no. There have been no new patches to YEAFFT.
rogue is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Msieve announcements jasonp Msieve 101 2021-07-08 20:27
Primenet maintenance announcements Madpoo PrimeNet 7 2015-11-12 05:50
GMP-ECM Announcements akruppa GMP-ECM 12 2013-02-27 15:30
Compiling Phrot rogue Sierpinski/Riesel Base 5 142 2009-01-09 03:42
Announcements hhh Prime Cullen Prime 10 2007-05-16 20:42

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


Tue Jul 27 09:38:19 UTC 2021 up 4 days, 4:07, 0 users, load averages: 2.27, 2.03, 1.89

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.