![]() |
[QUOTE]I tried switching to NewPGen format using srfile -g, but I ended up with one file for each k... [/QUOTE]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
|
[QUOTE=MyDogBuster;248794]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[/QUOTE]
Only one file now, but the syntax error messages are still there. |
[QUOTE=Puzzle-Peter;248791]My perl version is 5.12.2.0 and I'm running WinXP 32bit.[/QUOTE]
Pretty close to what I've got...I doubt it would be broken because of that. [QUOTE=Puzzle-Peter;248791]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.[/QUOTE] 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: [url]http://www.perlmonks.org/?node_id=819994[/url] 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 [URL="http://www.activestate.com/activeperl"]ActivePerl[/URL] 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=Puzzle-Peter;248791]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...[/QUOTE] ABC should work fine, as long as it starts with k and n (which srfile -w does). |
I tried ActivePerl now and it works just like it should.
Thanks! |
1 Attachment(s)
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 |
1 Attachment(s)
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 |
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 ...[/code] 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 ...[/code]. 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. :smile: Thank you, Daniel |
[QUOTE=Xentar;300648]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 ...[/code] 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 ...[/code]. 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. :smile: Thank you, Daniel[/QUOTE] 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. |
Doh.. I am using this tool for some time now, but I don't see the most obvious things.
Thank you. |
| All times are UTC. The time now is 09:34. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.