![]() |
|
|
#12 | |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
Quote:
|
|
|
|
|
|
|
#13 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Quote:
Stopping the plus side search at n=84438. I've double-checked the minus side from scratch and went a bit above 50k now. The minus side is twice thicker; ...more sieving will help, Mark, sounds good. Last fiddled with by Batalov on 2018-04-08 at 23:18 Reason: (updated the '+' status; final) |
|
|
|
|
|
|
#14 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23·3·5·72 Posts |
|
|
|
|
|
|
#15 |
|
"Mark"
Apr 2003
Between here and the
11×577 Posts |
|
|
|
|
|
|
#16 |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
I have some code, which is about 2.5x faster than MultiSieve for this form. I know that getting another 20% is doable, but I would need to write some assembly do that. Writing some GPU code could easily double the speed. I can probably write and test the GPU code faster than the asm code. Is there any interest in that?
|
|
|
|
|
|
#17 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23×3×5×72 Posts |
Yes. Every so often people post about a potential new form or I think of one. Working out the progression of the form mod p isn't that hard so it shouldn't be hard to come up with a basic sieve. I am expecting that you would often be able to speed up any sieve I created based upon mtsieve. http://mersenneforum.org/showthread.php?t=23069 was an example.
|
|
|
|
|
|
#18 | |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
Quote:
Last fiddled with by rogue on 2018-04-09 at 20:14 |
|
|
|
|
|
|
#19 |
|
Jun 2003
2·7·113 Posts |
I had searched these types of primes up to 50000 on both + and - sides several years ago. I used a script and srsieve - this was significantly faster than multisieve to sieve these numbers.
|
|
|
|
|
|
#20 |
|
"Mark"
Apr 2003
Between here and the
18CB16 Posts |
|
|
|
|
|
|
#21 |
|
Feb 2017
Nowhere
122316 Posts |
The behavior of nn (mod p) has some (perhaps) interesting consequences for sieving.
If p == 3 (mod 8), then the multiplicative order m of Mod(-2, p) is odd, and the multiplicative order of Mod(2, p) is 2*m. It follows that the number of residues of n (mod (p-1)*p) for which 2*nn + 1 == 0 (mod p) is three times the number for which 2*nn - 1 (mod p). For example, with p = 3, 2*nn + 1 == 0 (mod 3) for n == 1, 2, or 4 (mod 6), while 2*nn - 1 == 0 (mod 3) for n == 5 (mod 6). If p == 7 (mod 8) the situation is reversed; the multiplicative order m of Mod(2, p) is odd, and the multiplicative order of Mod(-2, p) is 2*m. The number of residues n (mod (p-1)*p) for which 2*nn - 1 -- 0 (mod p) is three times the number for which 2*nn + 1 == 0 (mod p). For example, with p = 7, 2*nn - 1 == 0 (mod 7) for n == 2, 4, 10, 23, 25, or 26 (mod 42), while 2*nn + 1 == 0 (mod 7) for n == 5 or 31 (mod 42). For p == 5 (mod 8), the multiplicative orders of 2 and -2 (mod p) are the same, and the number of residues (mod (p-1)*p) for which 2*nn + 1 and 2*nn - 1 are divisible by p, are the same. For example, with p = 5, 2*nn - 1 == 0 (mod 5) for n == 7 or 13 (mod 20), while 2*nn + 1 == 0 (mod 5) for n == 3 or 17 (mod 20). For p == 1 (mod 8) the situation is not generally predictable. If however 2 is not a biquadratic residue (mod p), then the numbers of residues (mod (p-1)*p) for which 2*nn + 1 and 2*nn - 1 are divisible by p, will be the same. Unfortunately, determining whether 2 is a biquadratic residue (mod p) isn't cheap AFAIK. If m is the multiplicative order of 2 (-2, resp) mod p, the number of residues (mod (p-1)*p) for which 2*nn - 1 (2*nn+ 1, resp) are divisible by p are Last fiddled with by Dr Sardonicus on 2018-04-11 at 13:36 |
|
|
|
|
|
#22 |
|
Jun 2003
2·7·113 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Primes of the form (b+-1)*b^n+-1 and b^n+-(b+-1) | sweety439 | sweety439 | 162 | 2020-05-15 18:33 |
| Primes of the form n+-phi(n) | carpetpool | carpetpool | 3 | 2017-01-26 01:29 |
| Infinitely many primes of a form? | PawnProver44 | Homework Help | 1 | 2016-03-15 22:39 |
| Primes of the form a^(2^n)+b^(2^n) | YuL | Math | 21 | 2012-10-23 11:06 |
| Primes of the form 2.3^n+1 | Dougy | Math | 8 | 2009-09-03 02:44 |