![]() |
|
|
#1 |
|
May 2014
216 Posts |
Sorry for the lack of background knowledge... I have few questions that I would really appreciate some help.
A - Is a prime in the form 2^n-c | c > 1 and 1 = c mod 2 verifiable through same methods that Mersenne numbers are? B - Can I speed up PRP verification of the formula above with programs like Cudalucas for L.Lemer Tests or Equivalent? (maybe not Cudalucas one time that I can't define constants c != 1) C - Are PRP tests processing time in general linear to bitlength? I got average time oscilating from 500ms to 300ms per bit (LLR) but if this really goes linear, i won't be able to finish the job before several months. |
|
|
|
|
|
#2 |
|
May 2014
2 Posts |
On "Can I speed up PRP verification" and "Are PRP tests processing time" I meant to say Probable Prime.
|
|
|
|
|
|
#3 | ||
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10AB16 Posts |
Quote:
Quote:
It is similar to Mersenne numbers: if you double the n, you roughly double the time per iteration and the number of iterations, so it's proportional to bitlength^2 (quadratic), not bitlength^1 (linear). The time per iterations is constant for the duration of your test. E.g. if you need to do 30 million iterations, it will take around (30 million * 300 ms =) 15 weeks. Last fiddled with by Mini-Geek on 2014-05-29 at 14:51 |
||
|
|
|
|
|
#4 | |
|
Nov 2003
22·5·373 Posts |
Quote:
and some specific numbers. To achieve roughly linear time per iteration, the modular multiplications must be done by convolution methods that automatically do the modular reduction (such as DWT), or which allow the reduction to be done in linear time. (which is true for 2^n +/- c for small c). Generic PRP tests run in time O(log^3 N) where N is the number being tested |
|
|
|
|
|
|
#5 | |
|
∂2ω=0
Sep 2002
República de California
19×613 Posts |
Quote:
|
|
|
|
|
|
|
#6 | |
|
Nov 2003
22×5×373 Posts |
Quote:
wrote "Parallel Polynomial Arithmetic over Finite Rings" back in the 90's. Aho, Hopcroft & Ullman's book on Algorithms gives a terrific exposition. [A terrific book in general; I learned a lot from it] However, it is horribly slow when compared to multiplication. AT least my implementation was. [perhaps a lousy implementation??] |
|
|
|
|
|
|
#7 |
|
Tribal Bullet
Oct 2004
3×1,181 Posts |
For N-bit operands, N-bit general modular multiplication needs about three N*N->2N-bit multiplies if a generalized reciprocal is already computed; see the functions ap_recip and ap_mul at the bottom of here. This was used with FHT multiplies in Msieve's NFS square root until I switched to using GMP.
|
|
|
|
|
|
#8 | |
|
Nov 2003
22×5×373 Posts |
Quote:
Computing N mod p_i for i=0,1,2,...... requires computing a new inverse each and every time. |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gpuOwL: an OpenCL program for Mersenne primality testing | preda | GpuOwl | 2719 | 2021-08-05 22:43 |
| Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" | wildrabbitt | Miscellaneous Math | 11 | 2015-03-06 08:17 |
| "On factors of Mersenne numbers" - Seiji Tomita | cheesehead | Math | 6 | 2009-12-15 17:45 |
| Would Minimizing "iterations between results file" may reveal "is not prime" earlier? | nitai1999 | Software | 7 | 2004-08-26 18:12 |
| trial factoring of "small" mersenne numbers | antiroach | Lone Mersenne Hunters | 6 | 2003-07-16 23:35 |