![]() |
|
|
#89 | |
|
Romulan Interpreter
Jun 2011
Thailand
26·151 Posts |
@axn:
First part is plain clear. As usual, you are right, and I was overseeing some "small details", this time it was related to exponentiation algorithm. But here you lost me: Quote:
Last fiddled with by LaurV on 2011-11-26 at 05:54 |
|
|
|
|
|
|
#90 |
|
Dec 2010
Monticello
34038 Posts |
@LaurV:
Subtracting 2 in the FFT space is as simple as subtracting, termwise, FFT(2) from the FFT you are about to do the inverse FFT on. But FFT(2) contains many nonzero terms (as many as the length of the FFT), so is relatively expensive to subtract in FFT space instead of just subtracting 2 and doing a few carries after the IFFT in normal digit space. The economics, of course, would be different if we were subtracting something that had lots of digits and and didn't have inordinately more nonzero terms in the FFT than in the original. |
|
|
|
|
|
#91 |
|
Jun 2011
102 Posts |
Code:
mtf()=
{
local(M:int);
local(a,t);
forprime(p=2, 5000,
M= (2^p-1):int;
a= Mod(3,M);
t= polrootsmod(a^2 - a*X + X^2, M);
if(#t==2, print(p))
)
};
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 1061 ECM | Unregistered | Information & Answers | 7 | 2011-06-25 00:33 |
| New factor for F17 | Buckle | Factoring | 15 | 2011-03-15 12:05 |
| database for 1061 inefficient? | lfm | PrimeNet | 1 | 2009-06-30 19:05 |
| who can factor 10^100+27? | aaa120 | Factoring | 17 | 2008-11-13 19:23 |
| Shortest time to complete a 2^67 trial factor (no factor) | dsouza123 | Software | 12 | 2003-08-21 18:38 |