mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-02-18, 12:44   #166
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·32·353 Posts
Default

Quote:
Originally Posted by rogue View Post
I've released PFGW 3.7.3 over at sourceforge. A problem was found when using -f that caused it to crash. That problem was fixed.
Please do not use pfgw 3.7.3 with the -f switch. It appears to be missing factors. I'm getting some help in tracking down the problem.
rogue is offline   Reply With Quote
Old 2013-02-27, 03:42   #167
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2×47×101 Posts
Default

Mark,
I have recently run some -go and -gxo tests (with large primes) and I have a proposal which may be easy to implement. Both -go and -gxo tests proceed all the way until finishing testing base 11, before reporting, only at the very end (this is an example; not mine):
Code:
11*2^2897409+1 is a Factor of GF(2897408,3)!!!! (30574.520000 seconds)
11*2^2897409+1 is a Factor of xGF(2897408,7,4)!!!! (0.010000 seconds)
I am fairly sure that the first of these two statements could have been output already after finishing the test in base 3 (i.e. ~5 hours earlier). I can (and I will) delve into the code to try to propose a patch, but maybe this is entirely trivial (with some rearranged logic)?

Of course, this is going to be of purely hedonic value, and of course the user could wait for another 5 hours, but wouldn't it be nice?
Batalov is offline   Reply With Quote
Old 2013-02-27, 04:02   #168
axn
 
axn's Avatar
 
Jun 2003

2·3·7·112 Posts
Default

Quote:
Originally Posted by Batalov View Post
I am fairly sure that the first of these two statements could have been output already after finishing the test in base 3 (i.e. ~5 hours earlier).
I would have thought that all the bases have to be powered _simultaneously_ if you want to efficiently test xGFs?
axn is offline   Reply With Quote
Old 2013-02-27, 12:54   #169
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×32×353 Posts
Default

Quote:
Originally Posted by Batalov View Post
Mark,
I have recently run some -go and -gxo tests (with large primes) and I have a proposal which may be easy to implement. Both -go and -gxo tests proceed all the way until finishing testing base 11, before reporting, only at the very end (this is an example; not mine):
Code:
11*2^2897409+1 is a Factor of GF(2897408,3)!!!! (30574.520000 seconds)
11*2^2897409+1 is a Factor of xGF(2897408,7,4)!!!! (0.010000 seconds)
I am fairly sure that the first of these two statements could have been output already after finishing the test in base 3 (i.e. ~5 hours earlier). I can (and I will) delve into the code to try to propose a patch, but maybe this is entirely trivial (with some rearranged logic)?

Of course, this is going to be of purely hedonic value, and of course the user could wait for another 5 hours, but wouldn't it be nice?
I didn't write the code, so I can't state that this is as easy as it appears. Feel free to take a look. The code is in the attached file.
Attached Files
File Type: zip gf_factorize.zip (7.5 KB, 100 views)
rogue is offline   Reply With Quote
Old 2013-02-27, 17:42   #170
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2×47×101 Posts
Default

I've read it for an hour yesterday.
It is obviously non-trivial to rearrange the logic right away, but I'll muck with it.

I was also curious to see what some people change in the code to find consolation prizes like this or this. The "extended extended" searches are possible with "-gx{2,27}{2,28}" for example; it creates more "GF_Subs" etc etc. All of the eligible GF_sprime_%d tests are run first (less for -g, because some bases can never produce -1 (mod ptested). It all makes sense. Haven't thought yet how to rearrange. Ugh, all those globals!

P.S. For the impatient ones, the FermatFactor-only code could be run as "-gos2"... Interesting.

P.P.S. There are funny side-effects that can be produced in the extended extended part. For example, while GF(8) is explicitly protected from over-reporting when the number is a Fermat factor, GF(32) is not. (E.g. try pfgw -gxo"{1,31}{2,32}" -l -q"189*2^90061+1"; the xGFs of course are found at 1/k rate and casting a wider net, everyone can find an xGF sooner or later.)

Last fiddled with by Batalov on 2013-02-27 at 18:15 Reason: (curios added)
Batalov is offline   Reply With Quote
Old 2013-02-27, 18:28   #171
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×32×353 Posts
Default

Quote:
Originally Posted by Batalov View Post
Haven't thought yet how to rearrange. Ugh, all those globals!
Preaching to the choir! globals aren't necessarily evil, but there are too many of them.

I would love to rewrite much of pfgw, but that is no small undertaking. Some of the functions are long and the execution path to access any of the pfoo functions is scary. I would also eliminate the use of overloaded operators. That is one of my least favorite things in C++ (with the exception of using '+' on string objects).
rogue is offline   Reply With Quote
Old 2013-03-02, 02:41   #172
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

145110 Posts
Default

Is it possible to add one "feature" to WinPFGW. If I need to do decimal expansion of some number, I must first create txt file with number, then start WinPFGW and enter pfgw -od -lprime.txt -q"inifile.txt"
It will be great that I can enter only pfgw -od -lprime.txt -q"number" without making inifile.txt and got result in prime.txt
I think is simple change in PFGW code...
pepi37 is online now   Reply With Quote
Old 2013-03-02, 13:08   #173
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2·3·11·73 Posts
Default

A question about pfgw.

If I run (say)

Code:
./pfgw 64s 2046*(2^1257787-1)+1
I can test if the factor is composite or PRP.

If the number is PRP, may I then run the script

Code:
SCRIPT

DIM expo, 1257787
DIM base, 2
DIM k, 1023
DIM result, 0
DIM mers, (2*k*(2^expo-1))+1
DIMS rstr
OPENFILEAPP r_file,results.txt

POWMOD result,base,2^expo-1,mers
WRITE r_file,result
to check if the result is 1, and therefore the number checked is prime and divides the double Mersenne?

Luigi

Last fiddled with by ET_ on 2013-03-02 at 13:09 Reason: I multiply 2*k in the script
ET_ is offline   Reply With Quote
Old 2013-03-02, 13:17   #174
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

10110111111102 Posts
Default

You would have to find the PRP in the script or modify the script to read PRPs from a file. It is quite possible that one of these options is quite viable. It would theoretically be possible to read an ABC file with a pfgw script.
henryzz is offline   Reply With Quote
Old 2013-03-02, 13:46   #175
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

481810 Posts
Default

Quote:
Originally Posted by henryzz View Post
You would have to find the PRP in the script or modify the script to read PRPs from a file. It is quite possible that one of these options is quite viable. It would theoretically be possible to read an ABC file with a pfgw script.
Well, I don't mind checking for compositenes by hand. A double Mersenne PRP factor is still quite rare at the actual level of sieving...

I just want to be ready when I will find one

Luigi
ET_ is offline   Reply With Quote
Old 2013-03-02, 14:08   #176
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×32×353 Posts
Default

Quote:
Originally Posted by pepi37 View Post
Is it possible to add one "feature" to WinPFGW. If I need to do decimal expansion of some number, I must first create txt file with number, then start WinPFGW and enter pfgw -od -lprime.txt -q"inifile.txt"
It will be great that I can enter only pfgw -od -lprime.txt -q"number" without making inifile.txt and got result in prime.txt
I think is simple change in PFGW code...
I don't understand. -q takes a number or expression as input, not a file. You would have pfgw -od -lprime.txt infile.txt or pfgw -od -lprime.txt -q"number"

Can you give me a specific example of what you are trying to do so that I can understand?
rogue is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
A possible bug in LLR/PFGW while using GWNUM (no bug in P95) Batalov Software 77 2015-04-14 09:01
PFGW 3.2.0 has been Released rogue Software 94 2010-09-14 21:39
PFGW 3.2.3 has been Released rogue Software 10 2009-10-28 07:07
PFGW 3.2.2 has been Released rogue Software 20 2009-08-23 12:14
PFGW 3.2.1 has been released rogue Software 5 2009-08-10 01:43

All times are UTC. The time now is 19:33.


Sun Aug 1 19:33:26 UTC 2021 up 9 days, 14:02, 0 users, load averages: 1.77, 1.71, 1.79

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.