![]() |
![]() |
#1 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
44508 Posts |
![]()
Hi,
Is there a LL type test for numbers of the form n^2-3? If so is it as efficient? Thanks in advance. |
![]() |
![]() |
![]() |
#2 | |
"Forget I exist"
Jul 2009
Dartmouth NS
841810 Posts |
![]() Quote:
n^2-3 = 6y+1 leads to n^2 = 6y+4 which if you test squares will get you n=2,4 mod 6 n^2-3 = 6y+5 leads to n^2=6(y+1)+2 which leads to no possible result as n^2 can only be 0,1,4, or 3 mod 6 |
|
![]() |
![]() |
![]() |
#3 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
23×293 Posts |
![]() |
![]() |
![]() |
![]() |
#4 |
"Forget I exist"
Jul 2009
Dartmouth NS
20E216 Posts |
![]()
I think we can put it in the correct form to do one of the tests listed here ( even if it might take Proth's theorem). but I don't know if it would be efficient.
|
![]() |
![]() |
![]() |
#5 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
10,061 Posts |
![]() |
![]() |
![]() |
![]() |
#6 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
1001001010002 Posts |
![]()
Thank you.
Just the sort of answer I appreciate for Yes or No questions. ![]() Last fiddled with by a1call on 2017-02-05 at 19:06 |
![]() |
![]() |
![]() |
#7 |
"Forget I exist"
Jul 2009
Dartmouth NS
2×3×23×61 Posts |
![]()
really not even LLR ? I would get something like (2^n-1)*2^1+1 for example though I guess that's too simple an attempt at an actual answer. edit: doh idiocy alert (2^n-1)*(2^1)-1 which makes it a proth theorem prime according the LLR wikipedia.
Last fiddled with by science_man_88 on 2017-02-05 at 21:18 |
![]() |
![]() |
![]() |
#8 | |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
10,061 Posts |
![]() Quote:
What is the relationship between k and 2n for the Proth theorem to be applicable? |
|
![]() |
![]() |
![]() |
#9 | |
"Forget I exist"
Jul 2009
Dartmouth NS
100000111000102 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
10,061 Posts |
![]() Quote:
I am not asking you read "closely enough". I am asking to read the first line. Hint: the first line of both theorems clearly says k < 2^n, doesn't it? |
|
![]() |
![]() |
![]() |
#11 |
"Forget I exist"
Jul 2009
Dartmouth NS
2·3·23·61 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Which type of RAM is faster? | jeff8765 | Hardware | 15 | 2023-01-01 17:19 |
Result Type | jwr257 | Information & Answers | 1 | 2017-12-09 05:58 |
Type of work to get? | Bispen | Information & Answers | 3 | 2016-01-27 16:46 |
What is work type "LL Test with no factoring"? | Svenie25 | PrimeNet | 4 | 2011-02-22 20:08 |
Ram type | JuanTutors | Hardware | 4 | 2004-08-14 23:04 |