mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Closed Thread
 
Thread Tools
Old 2008-10-31, 00:39   #100
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31×67 Posts
Default

Taking:
50K-51K
51K-52K
52K-53K
53K-54K
54K-55K
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?
Flatlander is offline  
Old 2008-10-31, 02:45   #101
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3×2,083 Posts
Default

Quote:
Originally Posted by Flatlander View Post
Taking:
50K-51K
51K-52K
52K-53K
53K-54K
54K-55K
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?
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.)
mdettweiler is offline  
Old 2008-10-31, 13:27   #102
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31·67 Posts
Default

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
Flatlander is offline  
Old 2008-10-31, 13:45   #103
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

32·17·19 Posts
Default

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
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
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'.)
kar_bon is offline  
Old 2008-10-31, 15:59   #104
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

624910 Posts
Default

Quote:
Originally Posted by kar_bon View Post
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
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
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'.)
Ah, that should work even better for Windows users. (I primarily use Linux, hence why I wrote my script in Perl instead.) 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).
mdettweiler is offline  
Old 2008-10-31, 16:29   #105
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

40358 Posts
Default

Quote:
Originally Posted by kar_bon View Post
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
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
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'.)
Thank you.

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.)
Flatlander is offline  
Old 2008-10-31, 16:43   #106
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

141518 Posts
Default

Quote:
Originally Posted by Flatlander View Post
@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.)
LOL!
mdettweiler is offline  
Old 2008-11-01, 14:07   #107
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31·67 Posts
Default

52103528*3^51080-1
Is prime.
Flatlander is offline  
Old 2008-11-02, 00:49   #108
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

1000000111012 Posts
Default

92101948*3^51682-1
Is prime.
Flatlander is offline  
Old 2008-11-02, 23:30   #109
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31×67 Posts
Default

9592784*3^52541-1
Is prime.
Flatlander is offline  
Old 2008-11-03, 09:21   #110
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

32×17×19 Posts
Default

Quote:
Originally Posted by Flatlander View Post
Thank you.
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"
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
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
hope this helps.
kar_bon is offline  
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sieving drive Riesel base 6 n=1M-2M gd_barnes Conjectures 'R Us 40 2011-01-22 08:10
Sierp base 3 - mini-drive II gd_barnes Conjectures 'R Us 46 2009-10-26 18:19
Sierp base 3 - mini-drive Ib gd_barnes Conjectures 'R Us 43 2009-03-06 08:41
Sierp base 3 - mini-drive Ia gd_barnes Conjectures 'R Us 170 2008-11-11 05:10
mini-drive for high-n testing on Sierp base 4 gd_barnes Conjectures 'R Us 43 2008-07-16 10:12

All times are UTC. The time now is 09:37.


Tue Jul 27 09:37:11 UTC 2021 up 4 days, 4:06, 0 users, load averages: 1.86, 1.89, 1.84

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.