![]() |
|
|
#122 |
|
Sep 2013
23×7 Posts |
Update, still no luck with #20 up to 550K digits.
I will stop #20 for now, runtime >1h and chance <1:1M per PRP-test is not too much fun. Some day and with a notably faster machine I will probably continue. Meanwhile only some parttime work on some of the smaller unsolved ones. |
|
|
|
|
|
#123 | |
|
May 2004
New York City
2×29×73 Posts |
Quote:
I think the possibility that there may be no prime in this particular sequence bears scrutiny. Actually proving that may be as hard as proving any of the famous conjectures about primes. So all your good work looking for one is definitely of positive value. |
|
|
|
|
|
|
#124 |
|
"Mark"
Apr 2003
Between here and the
11×577 Posts |
It seems that the sieve I wrote for the Copeland-Erdos search might be effective in eliminating numbers from testing.
|
|
|
|
|
|
#125 |
|
"Mark"
Apr 2003
Between here and the
11000110010112 Posts |
Here is a program you can use for sieving. The command line would look like this:
pixsieve -S20 -spi.txt -oterm.txt -iindex.txt -Rraw.txt -P1e7 -L100000 -m1e9 -s references a file with a single line that is all digits. In this case, pi. That line can be of any length. -S is the starting string to search for in that string of digits, in this case "20". it is not required -i is an output file of indexes. Eventually I will fix so that it can be correctly used as input to continue sieving. -R is an output file of the raw terms that you can run thru pfgw for PRP testing. -L is the maximum length of digits for sieving -m is the minimum factor to output to the U/I. Note that output long strings consumes a lot of CPU, so it should be set high. -f is an output file for factors, which can be verified with pfgw. It is not required. This program can be used with any input string, so it could be used for Smarandache and Copeland-Erdos sieving as well. Enjoy! |
|
|
|
|
|
#126 |
|
Einyen
Dec 2003
Denmark
35·13 Posts |
It looks great but maybe the screen output should not output the thousands or hundreds of thousands of digits in the strings for which the factors are found?
Maybe something like: 3198721 | 31415926535897932384...76020825202618798531 (6158 digits) |
|
|
|
|
|
#127 | |
|
"Mark"
Apr 2003
Between here and the
11000110010112 Posts |
Quote:
I was also thinking about an optimization. I don't know if I will have time to work on it today, but I think the program could be about 8x faster than what it is. |
|
|
|
|
|
|
#128 |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
8x faster is not quite right. When starting from length 1, I can't do anything to increase the speed, when starting from a length > 1, i.e. 200,000 digits to 300,000 digits I can speed up the mulmod up to 200,000 digits by a factor of 8.
|
|
|
|
|
|
#129 |
|
Sep 2013
23·7 Posts |
Shiny! Rogue, thanks a lot for your effort. Just took it for a test drive, nice and fast!
Some questions: 1. Since Windoof can't handle command lines longer then some KB, I can't hand over long --start_strings. Is there a way to set some offset so it doesn't sieve all the way from start_string to --lmax, but from start_string+offset? a --lmin? Or can it grab start_string from a file? 2. How do blocksize/chunksize/blocks translate into things like cache footprint, thread overhead, bandwidth... - speed? I played around with it a bit, halving, doubling... runtimes with a ~2min testcase varied <0.5%, explainable by background load. Is pixsieve derived from some other sieve which may have a .doc talking about that? 3. --help doesn't show the -o option from your example line, are there other hidden? |
|
|
|
|
|
#130 | |
|
"Mark"
Apr 2003
Between here and the
11×577 Posts |
Quote:
2) I'm not a guru on that. I don't recall where I got that code from, but I think it originated from fpsieve. I would be surprised if one could significantly change performance of the program (on a relatively current computer) by changing those values. 3) I probably missed it. |
|
|
|
|
|
|
#131 |
|
Sep 2013
5610 Posts |
Example: PrimesInPi, start value 20 has been tested up 550K digits. Sieving from
550K to 600K I translate to "--start_string=[a 550K number] --lmax=600K". But Windows is laughing at me when I point it to a 1/2MB command line, mumbling something about '8K ought to be enough for anybody.' --Start_string=20 --lmax=600K would replicate work already done. And extending later to 650K would replicate again. Thus the question about an offset or input from file. Or I'm missing something here? |
|
|
|
|
|
#132 | |
|
"Mark"
Apr 2003
Between here and the
634710 Posts |
Quote:
By adding -lmin I can speed up the calculation of the mod for the first number you are searching for. |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mersenne Primes p which are in a set of twin primes is finite? | carpetpool | Miscellaneous Math | 3 | 2017-08-10 13:47 |
| Distribution of Mersenne primes before and after couples of primes found | emily | Math | 34 | 2017-07-16 18:44 |
| Conjecture about Mersenne primes and non-primes v2 | Mickey1 | Miscellaneous Math | 1 | 2013-05-30 12:32 |
| A conjecture about Mersenne primes and non-primes | Unregistered | Information & Answers | 0 | 2011-01-31 15:41 |
| possible primes (real primes & poss.prime products) | troels munkner | Miscellaneous Math | 4 | 2006-06-02 08:35 |