mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2020-05-13, 17:26   #1
sweety439
 
sweety439's Avatar
 
Nov 2016

2·13·79 Posts
Default How to use LLR?

Can someone help me? I want to use LLR to find the smallest (probable) prime of the form (185^n-1)/184 (base 185 repunit, I already know that this is composite for all n<=60000, and this can be prime only for prime n), thus I download the program cllr.exe, and I type this in the sieve file:

Code:
ABC (185^$a-1)/184
a: primes from 60000 to 100000
but the llr program result is

Code:
Invalid ABC format, next data lines will be flushed...
Attached Files
File Type: zip repunit.zip (864.8 KB, 5 views)
sweety439 is offline   Reply With Quote
Old 2020-05-13, 17:38   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×11×149 Posts
Default

Quote:
Originally Posted by sweety439 View Post
Can someone help me? I want to use LLR to find the smallest (probable) prime of the form (185^n-1)/184 (base 185 repunit, I already know that this is composite for all n<=60000, and this can be prime only for prime n), thus I download the program cllr.exe, and I type this in the sieve file:

Code:
ABC (185^$a-1)/184
a: primes from 60000 to 100000
but the llr program result is

Code:
Invalid ABC format, next data lines will be flushed...
Run it through PFGW downloaded from sourceforge and use the -f switch for trial factoring if necessary.

From pfgwdoc.txt:

Quote:
-f{801} uses only primes which are of the form k*801+1

Last fiddled with by paulunderwood on 2020-05-13 at 17:47
paulunderwood is offline   Reply With Quote
Old 2020-05-13, 17:49   #3
sweety439
 
sweety439's Avatar
 
Nov 2016

2×13×79 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Run it through PFGW downloaded from sourceforge and use the -f switch for trial factoring if necessary.

From pfgwdoc.txt:
So if I want to use LLR to test all numbers of the form (b^n-1)/(b-1) with b=185, 269, 281 and 60000<=n<=100000 with prime n, what should I type?
sweety439 is offline   Reply With Quote
Old 2020-05-13, 17:51   #4
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×11×149 Posts
Default

Quote:
Originally Posted by sweety439 View Post
So if I want to use LLR to test all numbers of the form (b^n-1)/(b-1) with b=185, 269, 281 and 60000<=n<=100000 with prime n, what should I type?
You need to generate a list to input to LLR.

Why bother? PFGW is much better at this sort of thing.

More from the documentation:

Quote:
Phi(x,y) Cyclotomic number

Last fiddled with by paulunderwood on 2020-05-13 at 18:10
paulunderwood is offline   Reply With Quote
Old 2020-05-22, 20:54   #5
Kebbaj
 
Kebbaj's Avatar
 
"Kebbaj Reda"
May 2018
Casablanca, Morocco

5·11 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
You need to generate a list to input to LLR.

Why bother? PFGW is much better at this sort of thing.

More from the documentation:

The great advantage of pfgw over LLR is that pfgw test any form while LLR is limited to some form. But multithreading on LLR is faster than on the new version of pfgw64 with the -T switch. I don't know if I don't know how to use the -T switch on pfgw.
Kebbaj is offline   Reply With Quote
Old 2020-05-22, 21:09   #6
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×11×149 Posts
Default

Quote:
Originally Posted by Kebbaj View Post
The great advantage of pfgw over LLR is that pfgw test any form while LLR is limited to some form. But multithreading on LLR is faster than on the new version of pfgw64 with the -T switch. I don't know if I don't know how to use the -T switch on pfgw.
We need to put it to the test with a (b^n-1)/(b-1) number of considerable size not necessarily prime.

Code:
./llr64 -q"(10^49081-1)/9" -t4
Invalid expression in command line.
Code:
./pfgw64 -q"Phi(49081,10)" -T4
PFGW Version 4.0.1.64BIT.20191203.x86_Dev [GWNUM 29.8]

Phi(49081,10) is 3-PRP! (7.5663s+0.0012s)

Last fiddled with by paulunderwood on 2020-05-22 at 22:19
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 23:11.

Wed Jul 8 23:11:30 UTC 2020 up 105 days, 20:44, 0 users, load averages: 1.36, 1.24, 1.31

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.