mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Riesel Prime Search (https://www.mersenneforum.org/forumdisplay.php?f=59)
-   -   Combining NewPGen files? (https://www.mersenneforum.org/showthread.php?t=9856)

roger 2008-01-14 16:30

Combining NewPGen files?
 
Is there a way to combine NewPGen files, like for Msieve? I've tried simply combining different files to a master file, including the initial ABC ... NewPGen: ... line, but that didn't help.

I would like to be able to put a couple dozen small files together for pfgw, so that when I come home, it's done all/almost done all, instead of just a small section of what I want done.

Thanks!

roger

Kosmaj 2008-01-14 17:25

I assume you would like to combine small files and provide them as input to pfgw. If the forms of numbers in the files are completely different then the only way is to provide the numbers directly, for example:
507*2^516086+1
2153*2^514076-1
392113#+1
10^180004+248797842*10^89998+1

You can put all numbers above in the same file and pfgw should work. No ABC or any other header is needed.

On the other hand, if the forms have something in common an ABC or ABC2 header can be constructed, but you will have to tell us more.

Hope this helps.

roger 2008-01-14 18:35

So for example, with several NewPGen files, I could replace each 1 at the beginning of a newpgen output file line with the appropriate k, and combine them, as below?

[QUOTE]ABC 8341388245905*7872802237*$b*2^$a+1
xxxxxxxxxxxxxx 10000
xxxxxxxxxxxxxx 10003
xxxxxxxxxxxxxx 10020
xxxxxxxxxxxxxx 10038

yyyyyyyyyyyy 10001
yyyyyyyyyyyy 10008
yyyyyyyyyyyy 10031
yyyyyyyyyyyy 10045

etc[/QUOTE]

roger

Kosmaj 2008-01-14 21:52

Yes, this will work. But note that on each line the first number is used as $a, the second as $b and so on. So if your exponents start at 10,000 then replace $a and $b:
ABC 8341388245905*7872802237*$a*2^$b+1

Also, remove all blank lines in the numbers section. Try to test it with only a few numbers, one from each small file.

roger 2008-01-15 00:01

Thanks Kosmaj, I ran the file, and it didn't seem to mind the extra lines between k's.


All times are UTC. The time now is 17:12.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.