mersenneforum.org (https://www.mersenneforum.org/index.php)
-   -   Is there a way to check a certain exponent for whether or not (2^that exponent) - 1 is a prime? (https://www.mersenneforum.org/showthread.php?t=23961)

 shubhra 2019-01-03 00:15

Is there a way to check a certain exponent for whether or not (2^that exponent) - 1 is a prime?

I want to check whether or not a certain exponent will lead to a prime. When I started running GIMPS, I was automatically assigned an exponent. Do you think there is a way to change the program to check for a different exponent?

 petrw1 2019-01-03 03:11

Stop Prime95 (or mprime if you are on Linux).
Edit worktodo.txt and change the exponent to the one you want to test.
Start Prime95.

2 things to consider first:
1. If someone is already testing that exponent you may get a "na" (No Assignement) error.

2. Most importantly the exponent you are testing must itself be a prime number for Prime95 to accept it.

 Prime95 2019-01-03 03:20

Check here to make sure it has no known factors: [url]https://www.mersenne.org/report_exponent/[/url]

If the exponent is large, say above 200,000,000 expect a really long run time. Also consider doing a PRP test (better error checking) rather than an LL test.

 ATH 2019-01-03 04:11

For PRP test change worktodo.txt to:

PRP=1,2,exponent,-1

But check first that no one has assigned that exponent, just change <exponent> to the actual number:

https://mersenne.org/M<exponent>

If one LL test has already been done on it, and you want to double check it, do not do a PRP test, do another LL test:

Test=exponent,75,1

 Uncwilly 2019-01-03 06:52

Firstly, Welcome to GIMPS. We hope you have fun.

If you want to find a new world record prime, don't worry you are in the right place.

Note that the first number that you were assigned to check was almost certainly a double check. This helps us verify that no error overlooked a prime and checks your machine. Prime95 finds faults in machines all the time, even new ones. I had a brand new major brand computer fail testing right out of the box. I returned it for a replacement, that one passed. So, please consider letting the test run through to the end. You might get another double check on occasion to make sure your machine is still ok.

Right now all new first time checks being handed out are in the world record range. So, there is no need to make special requests.

If you are wanting to try to find the first 100 million digit prime, like George said it will take quite a while (several months). Let Prime95 check your machine with a double check first. Then set it to do the PRP test on it (hint look through the menus and settings). Also, many of the lowest numbers in the 100M digit range are assigned or have known factors. Check its status first. Also, there are ways to get an assignment like you want without doing the lookup work yourself (look at Manual assignments on the server.)

:cool:

 All times are UTC. The time now is 09:09.