View Single Post
Old 2008-07-29, 03:35   #13
gd_barnes's Avatar
May 2007
Kansas; USA

3×19×179 Posts

Originally Posted by Anonymous View Post
I've written a little Perl script that simplifies the process of running srfile to remove multiple k's (or just one, though if you're only removing one k you may as well just use srfile directly)--essentially, it takes an input file in any format srfile supports, removes all the k's listed in a given file (one sequence on each line, in the same format as you'd use normally with srfile), and outputs in either NewPGen, ABC, or ABCD format.

If anyone wants a copy of the program, just email me.

You can also use a batch process, which is what I do. Here is what I put in a file to remove the 3 k's with primes from the n=35K-50K files:

srfile -G -d "12562406*3^n+1" sieve-sierp-base3-0M-50M-35K-50K.txt
srfile -G -d "30494864*3^n+1" t16_b3.prp
srfile -G -d "38353046*3^n+1" t16_b3.prp
copy t16_b3.prp sieve-sierp-base3-0M-50M-35K-50Kb.txt
del t16_b3.prp

Just give the file a .bat extension and run it at the command prompt.

gd_barnes is offline