![]() |
|
|
#45 | |
|
May 2008
Wilmington, DE
B2416 Posts |
Quote:
Last fiddled with by MyDogBuster on 2011-01-23 at 20:51 |
|
|
|
|
|
|
#46 |
|
Jun 2009
22·32·19 Posts |
|
|
|
|
|
|
#47 | |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
Pretty close to what I've got...I doubt it would be broken because of that.
Quote:
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. ABC should work fine, as long as it starts with k and n (which srfile -w does). |
|
|
|
|
|
|
#48 |
|
Jun 2009
10101011002 Posts |
I tried ActivePerl now and it works just like it should.
Thanks! |
|
|
|
|
|
#49 |
|
Nov 2009
2·52·7 Posts |
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 |
|
|
|
|
|
#50 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
5,881 Posts |
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 |
|
|
|
|
|
#51 |
|
Sep 2006
11×17 Posts |
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 ... 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 |
|
|
|
|
|
#52 | |
|
"Mark"
Apr 2003
Between here and the
24·397 Posts |
Quote:
|
|
|
|
|
|
|
#53 |
|
Sep 2006
18710 Posts |
Doh.. I am using this tool for some time now, but I don't see the most obvious things.
Thank you. |
|
|
|
![]() |
| 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 |