mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2016-02-20, 10:33   #122
J F
 
J F's Avatar
 
Sep 2013

23×7 Posts
Default

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.
Attached Files
File Type: zip pip-prps2016-02-19#.zip (20.3 KB, 98 views)
J F is offline   Reply With Quote
Old 2016-05-13, 16:33   #123
davar55
 
davar55's Avatar
 
May 2004
New York City

2×29×73 Posts
Default

Quote:
Originally Posted by J F View Post
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.
You call it no luck finding a prime.
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.
davar55 is offline   Reply With Quote
Old 2016-05-13, 16:48   #124
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11×577 Posts
Default

It seems that the sieve I wrote for the Copeland-Erdos search might be effective in eliminating numbers from testing.
rogue is online now   Reply With Quote
Old 2016-05-14, 15:07   #125
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11000110010112 Posts
Default

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!
Attached Files
File Type: 7z pixsieve.7z (29.2 KB, 89 views)
rogue is online now   Reply With Quote
Old 2016-05-14, 16:14   #126
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

35·13 Posts
Default

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)
ATH is offline   Reply With Quote
Old 2016-05-14, 17:45   #127
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11000110010112 Posts
Default

Quote:
Originally Posted by ATH View Post
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)
I could do that. I would recommend using -m1e12 until I do something about that.

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.
rogue is online now   Reply With Quote
Old 2016-05-17, 19:31   #128
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11·577 Posts
Default

Quote:
Originally Posted by rogue View Post
I could do that. I would recommend using -m1e12 until I do something about that.

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.
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.
rogue is online now   Reply With Quote
Old 2016-05-25, 09:28   #129
J F
 
J F's Avatar
 
Sep 2013

23·7 Posts
Default

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?
J F is offline   Reply With Quote
Old 2016-05-25, 13:17   #130
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11×577 Posts
Default

Quote:
Originally Posted by J F View Post
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?
1) Why do you need a long start string? As for an lmin parameter, I started making a change for that, but didn't complete it.
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.
rogue is online now   Reply With Quote
Old 2016-05-25, 16:06   #131
J F
 
J F's Avatar
 
Sep 2013

5610 Posts
Default

Quote:
Originally Posted by rogue View Post
1) Why do you need a long start string?
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?
J F is offline   Reply With Quote
Old 2016-05-25, 17:40   #132
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

634710 Posts
Default

Quote:
Originally Posted by J F View Post
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?
Yes. What you want to do is -S20 because the numbers you are searching for start with "20". The problem is that it needs a -lmin parameter so that you can use -l550000 -L600000 so that it looks for 550000 to 600000 digit numbers starting with 20.

By adding -lmin I can speed up the calculation of the mod for the first number you are searching for.
rogue is online now   Reply With Quote
Reply



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

All times are UTC. The time now is 03:12.


Sat Jul 17 03:12:53 UTC 2021 up 50 days, 1 hr, 1 user, load averages: 1.25, 1.36, 1.33

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.