mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-01-23, 20:50   #45
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

B2416 Posts
Default

Quote:
I tried switching to NewPGen format using srfile -g, but I ended up with one file for each k...
You need the -G not the -g. They are both NewPGen but -G gives you a PRP file and not individual files for each k

Last fiddled with by MyDogBuster on 2011-01-23 at 20:51
MyDogBuster is offline   Reply With Quote
Old 2011-01-23, 20:56   #46
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

22·32·19 Posts
Default

Quote:
Originally Posted by MyDogBuster View Post
You need the -G not the -g. They are both NewPGen but -G gives you a PRP file and not individual files for each k
Only one file now, but the syntax error messages are still there.
Puzzle-Peter is online now   Reply With Quote
Old 2011-01-24, 00:26   #47
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by Puzzle-Peter View Post
My perl version is 5.12.2.0 and I'm running WinXP 32bit.
Pretty close to what I've got...I doubt it would be broken because of that.
Quote:
Originally Posted by Puzzle-Peter View Post
EDIT: I just changed the second and third code line to

open(IN, "pl_remain.txt");
$file = "sr_228.pfgw";

and it started working, but every output line telling me which k is worked on is followed by "Removed 0 line(s)" and two "Syntax error" messages.
It looks like there's a problem with your Perl setup understanding how to read in arguments. Try looking at this and see if your .pl file association looks correct or not:
http://www.perlmonks.org/?node_id=819994
In trying to test it all with Strawberry Perl to try to track down the bug, it seems there's a lot of weird things about it. Try installing ActivePerl and running the script with that...
Are you running this from a command line or did you make a shortcut? Try doing it from an actual command prompt if you're not already. If you want to help debug this and none of this helped, try to see what you are and aren't getting as arguments, and see if you can get it to actually see what you're giving it.
Or you can just ignore it since it's probably not worth this much trouble just to remove a few numbers.
Quote:
Originally Posted by Puzzle-Peter View Post
Is abc a valid format for the script? I tried switching to NewPGen format using srfile -g, but I ended up with one file for each k...
ABC should work fine, as long as it starts with k and n (which srfile -w does).
Mini-Geek is offline   Reply With Quote
Old 2011-01-29, 07:24   #48
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

10101011002 Posts
Default

I tried ActivePerl now and it works just like it should.

Thanks!
Puzzle-Peter is online now   Reply With Quote
Old 2011-08-27, 19:55   #49
Mathew
 
Mathew's Avatar
 
Nov 2009

2·52·7 Posts
Default

Hello,

Attached is a perl script which is intended for ranges/bases not started.

It does the following:
a) It creates the input file for a new_base
b) ./pfgw -f100 -l new_base
c) ./srsieve -a -n [n testing range] -N [n max sieving range] -P 100e6 -m 4e9 pl_remain.txt
d) ./sr2sieve -P [sieve range] -i sr_base.abcd
e) ./srfile -a -k factors sr_base.abcd
f) It gzips the entire folder

The attached Readme gives details of the commands needed. The _win version is for windows this has been tested against Strawberry Perl.

Note: This is intended for small k ranges. I have used it for k-ranges of 1M for base 7. I would recommend using no more than the range you would normally do using the starting bases script.

Suggestions/Improvements are welcome.

Thanks,

Mathew
Attached Files
File Type: zip Small pieces.zip (10.7 KB, 136 views)
Mathew is offline   Reply With Quote
Old 2012-04-03, 10:43   #50
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

5,881 Posts
Default

I am near the end of a introductory probability course and thought I would fiddle with the odds of prime spreadsheet. I have added the probabilities of finding exactly 1, 2 or 3 primes, twins, triplets or quads.

I inputed the data from serp base 6 for n=510k-600k and there is:
36.768% chance of exactly 1 prime
17.770% chance of exactly 2 primes
5.725% chance of exactly 3 primes
Attached Files
File Type: zip odds of prime2.zip (8.4 KB, 139 views)
henryzz is online now   Reply With Quote
Old 2012-05-29, 19:53   #51
Xentar
 
Xentar's Avatar
 
Sep 2006

11×17 Posts
Default

Hello there,

I've got a small question, maybe someone can help me.
I have an input file with remaining k in the form
Code:
634*19^n+1
1446*19^n+1
2526*19^n+1
...
This file was used by me to start sieving the range n=25k-100k.

And some primes in the form
Code:
3706*19^25538+1
706894*19^25791+1
705766*19^25798+1
173056*19^25816+1 
...
.
Now I'd like to start a new sieving, so I have to delete all the K, where a prime has been found, from the input file.
Can someone tell me how to do this easily? There are some hundred primes, so I would prefer a automatic solution.


Thank you,
Daniel
Xentar is offline   Reply With Quote
Old 2012-05-29, 20:19   #52
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·397 Posts
Default

Quote:
Originally Posted by Xentar View Post
Hello there,

I've got a small question, maybe someone can help me.
I have an input file with remaining k in the form
Code:
634*19^n+1
1446*19^n+1
2526*19^n+1
...
This file was used by me to start sieving the range n=25k-100k.

And some primes in the form
Code:
3706*19^25538+1
706894*19^25791+1
705766*19^25798+1
173056*19^25816+1 
...
.
Now I'd like to start a new sieving, so I have to delete all the K, where a prime has been found, from the input file.
Can someone tell me how to do this easily? There are some hundred primes, so I would prefer a automatic solution.


Thank you,
Daniel
Use srfile. Use the -d option with a file that contains a list of primes with one prime per line. It will ignore the value of n and remove the k.
rogue is offline   Reply With Quote
Old 2012-05-29, 21:43   #53
Xentar
 
Xentar's Avatar
 
Sep 2006

18710 Posts
Default

Doh.. I am using this tool for some time now, but I don't see the most obvious things.

Thank you.
Xentar is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripts thread bsquared YAFU 4 2012-10-21 19:45
Escape sequences in bash scripts? CRGreathouse Software 16 2009-03-26 08:42
Perl scripts for result file conversion nuggetprime No Prime Left Behind 5 2009-01-02 19:44
Tracking GIMPS progress with scripts jasong jasong 21 2008-03-25 00:47
DPGraph 2D/3D scripts nibble4bits Lounge 0 2008-01-16 17:05

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


Tue Jul 27 10:20:55 UTC 2021 up 4 days, 4:49, 0 users, load averages: 1.37, 1.74, 1.86

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.