mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   (may be) stupid idea for speed of mersenne-LLT (https://www.mersenneforum.org/showthread.php?t=6680)

Random_zh 2006-11-23 19:35

(may be) stupid idea for speed of mersenne-LLT
 
Hi all. I have an idea how to may be speed or slow down LL test. I just dont know how FFT multiplication behaves with even larger numbers.

you could test 2 or more numbers at same time:

example for the iterations with 3 exponents p,q,r:
S(0) = 4
S(n+1) = S(n)^2-2 mod (2^p-1 * 2^q-1 * 2^p-1)
test p,q,r like always:
S(p-2) mod (2^p-1)
S(q-2) mod (2^q-1)
S(r-2) mod (2^r-1)

hmm i guess it will cost more time with larger numbers, but since i'm not sure... :)

akruppa 2006-11-24 08:25

It would be slower. The time for doing a multiplication grows faster than the size of the input number, O(n log(n) loglog(n)) for FFT multiplication, so testing two numbers at once would take more than twice as long as testing a single one. Also, the DWT will probably not work.

Alex


All times are UTC. The time now is 12:54.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.