mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Conjectures 'R Us (https://www.mersenneforum.org/forumdisplay.php?f=81)
-   -   Riesel base 3 - mini-drive I (https://www.mersenneforum.org/showthread.php?t=10794)

Flatlander 2008-10-31 00:39

Taking:
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-50K-51K.txt"]50K-51K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-51K-52K.txt"]51K-52K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-52K-53K.txt"]52K-53K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-53K-54K.txt"]53K-54K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-54K-55K.txt"]54K-55K[/URL]
Running them stitched together on 1 core. About 6 days work.

What's the easiest way of removing several k at a time from a file?

mdettweiler 2008-10-31 02:45

[quote=Flatlander;147307]Taking:
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-50K-51K.txt"]50K-51K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-51K-52K.txt"]51K-52K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-52K-53K.txt"]52K-53K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-53K-54K.txt"]53K-54K[/URL]
[URL="http://gbarnes017.googlepages.com/sieve-riesel-base3-0M-100M-54K-55K.txt"]54K-55K[/URL]
Running them stitched together on 1 core. About 6 days work.

What's the easiest way of removing several k at a time from a file?[/quote]
I wrote a little Perl script to automate this process a while back for KEP. If you'd like me to send you a copy, later today I can find my earlier instructions for KEP and email it to you. (I just checked my address book and I do already have your email address from before when you helped out with the Sierp. base 6 sieving, so no need to re-send that to me.) :smile:

Flatlander 2008-10-31 13:27

I don't speak Perl but I did download ActivePerl a few days ago.
(I don't think it installed properly though.)

Perhaps you could email the instructions and I'll give it a try. (Windows.)

Thanks,
Chris

kar_bon 2008-10-31 13:45

the easiest way to remove many k's from a file: (DOS)

for example you have a sieve-file (in LLR-format: header, pairs k n, here a base7-file):
create a batch "del_k.bat" with:
[code]
srfile -d "%1*7^n-1" -G %2
[/code]

and another 'do.bat' calling this with all k's:
[code]
call del_k 111 t17_b7.prp
call del_k 112 t17_b7.prp
call del_k 113 t17_b7.prp
call del_k 114 t17_b7.prp
[/code]

the first one will remove the sequence with k=111 from your sieve-file 't17_b7.prp' and creates a new one, also in LLR-format.

put all callings for all k's in the second and start this.

(for an abcd-format you have to edit the first one to '... -a %2'.)

mdettweiler 2008-10-31 15:59

[quote=kar_bon;147366]the easiest way to remove many k's from a file: (DOS)

for example you have a sieve-file (in LLR-format: header, pairs k n, here a base7-file):
create a batch "del_k.bat" with:
[code]
srfile -d "%1*7^n-1" -G %2
[/code]and another 'do.bat' calling this with all k's:
[code]
call del_k 111 t17_b7.prp
call del_k 112 t17_b7.prp
call del_k 113 t17_b7.prp
call del_k 114 t17_b7.prp
[/code]the first one will remove the sequence with k=111 from your sieve-file 't17_b7.prp' and creates a new one, also in LLR-format.

put all callings for all k's in the second and start this.

(for an abcd-format you have to edit the first one to '... -a %2'.)[/quote]
Ah, that should work even better for Windows users. (I primarily use Linux, hence why I wrote my script in Perl instead.) :smile: In that case, there's probably no need for me to send Chris my Perl script--Chris, let me know if you still want it (say if you've got a Linux machine you need to use it on).

Flatlander 2008-10-31 16:29

[quote=kar_bon;147366]the easiest way to remove many k's from a file: (DOS)

for example you have a sieve-file (in LLR-format: header, pairs k n, here a base7-file):
create a batch "del_k.bat" with:
[code]
srfile -d "%1*7^n-1" -G %2
[/code]and another 'do.bat' calling this with all k's:
[code]
call del_k 111 t17_b7.prp
call del_k 112 t17_b7.prp
call del_k 113 t17_b7.prp
call del_k 114 t17_b7.prp
[/code]the first one will remove the sequence with k=111 from your sieve-file 't17_b7.prp' and creates a new one, also in LLR-format.

put all callings for all k's in the second and start this.

(for an abcd-format you have to edit the first one to '... -a %2'.)[/quote]

Thank you. :smile:

Could you please show me this specifically for:
A base-3 file in ABC format with a name of, say, "foobar.txt". Not changing that file and producing a file in ABC format with a name "trimmed.txt"

@Max
It looks like I won't need the Perl script thanks. Though I might try to get a 64bit Ubuntu running on my 'resurrected' C2D PC. (It's network name is Lazarus.)

mdettweiler 2008-10-31 16:43

[quote=Flatlander;147378]@Max
It looks like I won't need the Perl script thanks. Though I might try to get a 64bit Ubuntu running on my 'resurrected' C2D PC. (It's network name is Lazarus.)[/quote]
LOL! :lol:

Flatlander 2008-11-01 14:07

52103528*3^51080-1
Is prime.

Flatlander 2008-11-02 00:49

92101948*3^51682-1
Is prime.

Flatlander 2008-11-02 23:30

9592784*3^52541-1
Is prime.

kar_bon 2008-11-03 09:21

[QUOTE=Flatlander;147378]Thank you. :smile:
Could you please show me this specifically for:
A base-3 file in ABC format with a name of, say, "foobar.txt". Not changing that file and producing a file in ABC format with a name "trimmed.txt"
[/QUOTE]

srfile will name the output-file as t17_b<n>.xxx with the extension depending on the parameter:
-a creates a *.abcd
-G creates a *.npg
-w creates a *.pfgw
-g creates for every k a *.npg

if you use: "srfile -o foobar.txt sr_3.abcd"
a file in srsieve-format will be created. so you have to rename the last file by hand, or

del_k.bat:
[code]
srfile -d "%1*3^n-1" -a %2[/code]

and do.bat:
[code]
ren foobar.txt sr_3.abcd
call del_k 111 sr_3.abcd
call del_k 112 sr_3.abcd
call del_k 113 sr_3.abcd
call del_k 114 sr_3.abcd
ren sr_3.abcd trimmed.txt[/code]

hope this helps.


All times are UTC. The time now is 06:02.

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