![]() |
|
|
#617 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
642210 Posts |
axn: you're absolutely right, 54 was a typo on my part.
Running 2M - 3.9M (13e for 2M-3.5M and then by mistake 12e for the rest) took in total 22.3 CPU-hours and gave 3531784 relations, which allowed a 539k-squared matrix to be built in about four minutes and solved in about fifty more minutes. Removing small factors doesn't have an effect on the SNFS difficulty; the parts of the sieve program which manipulate numbers the size of the number being factored are really very small. Now, how did I decide which siever and which lp values to use? I start by picking the lp value, and I thought this was quite a small number so I would try lp=25. That means that I'd expect to need about three million relations. I'm aiming for two relations per Q, so in that case I'd want 1.5 million Q, so Q=1.5M to 3M would be where to start. So try alim=rlim=3M and see what happens; using siever-size = half of lp is probably sensible, so try 12e and 13e, and run '-c 1000' to get a little sample Code:
12e: total yield: 762, q=3001001 (0.02178 sec/rel) 13e: total yield: 1770, q=3001001 (0.02185 sec/rel) This process works for any polynomial you might want to try sieving. How about if I'd wanted lp=26. I'd want six million relations so try Q=3M to 6M, so sample at 6M. Code:
6M, 12e: total yield: 1794, q=6001013 (0.01514 sec/rel) 6M, 13e: total yield: 3948, q=6001013 (0.01341 sec/rel) The problem is simply that the script is making too large an estimate for the number of relations it needs to collect before trying to filter; it collected six million when it only needed three and a half million. Last fiddled with by fivemack on 2011-09-20 at 18:38 |
|
|
|
|
|
#618 | |
|
Nov 2006
Terra
2·3·13 Posts |
Your comments are quite helpful .
I don't know how to do this by hand . How many commands replace ..\factMsieve.py ? Can you help me learn this ? Quote:
6M vs 3.5M seems like lot to me , but apparently it didn't cause a fatal problem . If I read the output correctly , using more relations , it built a matrix almost 379K square . I'm guessing that in the later stages , this would use less RAM than a larger matrix . How large an N will fit into this P4 with 1.5 GiB of RAM ? Can I trade off more sieving for a smaller matrix and extend the capability of the P4 ? P. S. I'm ignoring your comments about the time consumed by the later stages ( my attention is transfixed by the prospect of months or years of sieving ) , but I don't have to . If you want more info about the snfs 153 run on the P4 , I'm at your service . I'll summarize more , or attach the various smaller files , or email them or whatever . |
|
|
|
|
|
|
#619 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
11001000101102 Posts |
Looking through all my log files, a 149-digit GNFS-number completed the linear-algebra steps using at most 1247MB of memory so in principle should fit on your machine.
Similarly the 198-difficulty SNFS 35^128+1 at one point allocated 1049.7MB but no more. If you become addicted to factorisation, get a Sandy Bridge machine with 16GB of memory (the memory costs less than $120 at the moment in the US) and you can happily cope with really quite large problems ... 284-difficulty SNFS ./2-941/msieve.log:Mon Nov 16 23:33:19 2009 memory use: 10367.2 MB 170-digit GNFS ./3270.632/la/msieve.log:Tue May 31 18:36:49 2011 memory use: 6046.6 MB |
|
|
|
|
|
#620 | |
|
Nov 2006
Terra
2×3×13 Posts |
Quote:
factoring the residual with gnfs can be done in less time than using snfs ? Considering that as N grows larger , the residual grows more and more intractable , would this not mean that if snfs is available , then the usefulness of ECM is pretty much limited to the cases where it achieves a complete factorization ? Thanks for your last post ; helpful . |
|
|
|
|
|
|
#621 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
2×132×19 Posts |
You're right: if you pull a 70-digit factor out of a 280-digit SNFS-number leaving a 210-digit GNFS-number, you're much better off factoring the original number by SNFS than trying to factor the cofactor with GNFS.
I had to look quite hard to find a GNFS job which was of around 200 digits and was easier by GNFS than SNFS. Last fiddled with by fivemack on 2011-09-21 at 14:07 |
|
|
|
|
|
#622 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
191616 Posts |
Quote:
Code:
gnfs-lasieve4I13e -a -f 2000000 -c 1000000 (in one window) gnfs-lasieve4I13e -a -f 3000000 -c 1000000 (in another window) copy gnfs as msieve.fb, change 'cX:' to 'AX' and 'YX:' to 'RX', change 'n:' to 'N', change 'skew:' to 'SKEW' and remove the rest of the lines put the number to factor as worktodo.ini wait until the lasieve jobs have finished copy gnfs.lasieve-0.2000000-3000000+gnfs.lasieve-0.3000000-4000000 > msieve.dat msieve -v -nc -t 2 |
|
|
|
|
|
|
#623 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
2×132×19 Posts |
It happens that I've just finished a C127 on one core of the same machine that I used for the S153 timing test above:
Code:
Polynomial selection 10h50m Sieving (26-bit large primes, 13e siever) 79h47m msieve 2h27m (memory use 326MB) |
|
|
|
|
|
#624 | |
|
Oct 2004
Austria
2×17×73 Posts |
Quote:
|
|
|
|
|
|
|
#625 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
2·132·19 Posts |
Quote:
|
|
|
|
|
|
|
#626 |
|
Oct 2004
Austria
2·17·73 Posts |
ooops, sorry, I missed that part.
|
|
|
|
|
|
#627 | |
|
Nov 2006
Terra
2×3×13 Posts |
Quote:
http://upforthecount.com/math/nnp.html E.g. , letting np ( n ) = n^n + (n+1)^(n+1) , np ( 415 ) = 29 * p1089 That one was found by trial division . BTW , I use there the notation "p1089" to denote a proven prime , and p?11585 to denote a number which has failed a compositeness test , usually 2-Fermat . Also , David Broadhurst has posted some to http://www.primenumbers.net/prptop/s...2By^y%29%2F%3F and http://tech.dir.groups.yahoo.com/gro.../message/20907 and vicinity , including np ( 23619 ) = 7187 * p?103294 . |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Msieve & ggnfs on MacOS | xilman | Msieve | 8 | 2017-05-20 00:12 |
| Factorizing with MSIEVE, GGNFS & Factmsieve.py | Romuald | Msieve | 24 | 2015-11-09 20:16 |
| Infinite loop for ggnfs or msieve | Greebley | Aliquot Sequences | 4 | 2013-02-06 19:28 |
| Error running GGNFS+msieve+factmsieve.py | D. B. Staple | Factoring | 6 | 2011-06-12 22:23 |
| A new driver? (or type of driver?) | 10metreh | Aliquot Sequences | 3 | 2010-02-15 15:57 |