mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Riesel Prime Search

Reply
 
Thread Tools
Old 2008-01-14, 16:30   #1
roger
 
roger's Avatar
 
Oct 2006

22×5×13 Posts
Default 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
roger is offline   Reply With Quote
Old 2008-01-14, 17:25   #2
Kosmaj
 
Kosmaj's Avatar
 
Nov 2003

1110001001102 Posts
Default

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.

Last fiddled with by Kosmaj on 2008-01-14 at 17:27
Kosmaj is offline   Reply With Quote
Old 2008-01-14, 18:35   #3
roger
 
roger's Avatar
 
Oct 2006

1000001002 Posts
Default

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
roger
roger is offline   Reply With Quote
Old 2008-01-14, 21:52   #4
Kosmaj
 
Kosmaj's Avatar
 
Nov 2003

1110001001102 Posts
Default

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.
Kosmaj is offline   Reply With Quote
Old 2008-01-15, 00:01   #5
roger
 
roger's Avatar
 
Oct 2006

22×5×13 Posts
Default

Thanks Kosmaj, I ran the file, and it didn't seem to mind the extra lines between k's.
roger is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining CPUs Edmond Lounge 11 2017-07-03 16:31
Combining low quality random numbers sources only_human Miscellaneous Math 3 2016-05-20 05:47
Combining Msieve with CADO NFS mfeltz Msieve 10 2016-03-16 21:12
Need to learn how to edit, and make from scratch, NewPGen files. jasong Software 2 2006-05-28 21:16
Sieving multiple NewPGen files in a row(How?) jasong Software 18 2005-12-30 20:23

All times are UTC. The time now is 20:52.

Mon Apr 12 20:52:07 UTC 2021 up 4 days, 15:32, 1 user, load averages: 3.39, 3.04, 2.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.