mersenneforum.org MISSING A FEATURE IN PFGW
 User Name Remember Me? Password
 Register FAQ Search Today's Posts Mark Forums Read

 2021-09-09, 08:29 #1 Cybertronic     Jan 2007 Germany 38210 Posts MISSING A FEATURE IN PFGW Hello PFGW programmers ! Is it possible to create a special PFGW for me ? I need a feature, that PFGW write only numbers in pfgw.log, if ALL conditions are 3-PRP ! Example: ABC $a+0 &$a+2 & $a+6 &$a+12 & $a+14 &$a+20 & $a+24 &$a+26 281809744377742937 280807944730632017 276808166894198957 .... pfgw.log Output-File 276808166894198957 I need it so urgent :-) regards Norman
2021-09-09, 11:39   #2
paulunderwood

Sep 2002
Database er0rr

F2116 Posts

That syntax would clash with:

Quote:
 you can also search for an expression only if all the previous expressions were prime (again a chain of up to 20 expressions (now 250 expressions) may be tested): ABC $a*$b^$c+1 &$a*$b^$c-1 1 2 5000 1079 2 4567 2842 3 3210 612 2 4321 48207 2 400
You could always write a GMP program to do this, or even PARI/GP

 2021-09-09, 11:59 #3 kar_bon     Mar 2006 Germany B6D16 Posts Use awk (gawk for WIN): create file list.awk with code: Code: BEGIN {line=$0} { if (index($0,"Complete Set")) print substr(line,1,index(line,"+")-1) line=$0 } and call this with Code: gawk -f list.awk pfgw.out processing the PFGW output file with this script. Your example will output only one line with 276808166894198957. PS: For redirecting the output call Code: gawk -f list.awk pfgw.out >out.txt in a separate file. Last fiddled with by kar_bon on 2021-09-09 at 12:01 Reason: redirect  2021-09-09, 12:27 #4 Cybertronic Jan 2007 Germany 2×191 Posts @kar_bon This is what I do, but PFGW should be only write a minimum to pfgw.log...only$a's for passing all conditions. (Also das mache ich ja , aber PFGW schreibt zu viel bei kleinen Zahlen auf die Festplatte, soll aber nur dann in die pfgw.log schreiben, wenn alle Bedingungen erfüllt sind.)
 2021-09-09, 14:19 #5 henryzz Just call me Henry     "David" Sep 2007 Cambridge (GMT/BST) 10111001000012 Posts This would be a nice feature but far from necessary as there are workarounds. If I recall correctly the code implementing this sort of thing is a mess in PFGW and rogue has avoided playing with it much. I personally just grep for the last form. If you wanted to avoid the large output you could write a pfgw script. Last fiddled with by rogue on 2021-09-09 at 15:22
 2021-09-09, 15:25 #6 rogue     "Mark" Apr 2003 Between here and the 2×3,217 Posts The pfgw code is messy. It uses (and abuses) many C++ features. My intent is to rewrite it in the future so that it is easier for me to support. Whether or not I ever get around to it is a separate question as it will require a lot of planning.
 2021-09-09, 16:15 #7 Cybertronic     Jan 2007 Germany 2·191 Posts Can I hope for it ? Maybe with "pfgw64 -N -f0 -oac input.txt" or so. oac = only all conditions
2021-09-09, 17:18   #8
rogue

"Mark"
Apr 2003
Between here and the

2·3,217 Posts

Quote:
 Originally Posted by Cybertronic Can I hope for it ? Maybe with "pfgw64 -N -f0 -oac input.txt" or so. oac = only all conditions
Not in the near future.

 Similar Threads Thread Thread Starter Forum Replies Last Post Youjaes Forum Feedback 18 2021-03-04 14:21 R.D. Silverman GMP-ECM 3 2011-03-18 21:35 Joe O Sierpinski/Riesel Base 5 5 2010-09-30 14:07 ColdFury NFSNET Discussion 1 2005-02-18 09:27 tha Data 6 2003-09-14 21:36

All times are UTC. The time now is 01:28.

Mon Oct 25 01:28:49 UTC 2021 up 93 days, 19:57, 0 users, load averages: 1.26, 1.16, 1.23