mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2009-04-16, 18:56   #12
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

67258 Posts
Default

jordis: of course it's possible to use msieve by itself to factor RSA130. Msieve will finish 3-4x faster if you generate a polynomial of your own (see guide). On top of that, using GGNFS for the sieving will complete 5x faster than using msieve, even with the same polynomial (see guide). Considering that the sieving will take ~1 week after you do both of the above, this is a considerable savings in time.

You just have to

- install GGNFS
- determine the polynomial you want
- put the polynomial in a text file that GGNFS will understand
- run the factMsieve.pl perl script

Good luck. Others have tried using just msieve for large jobs, and the exercise will take more patience than you likely have.

Last fiddled with by jasonp on 2009-04-16 at 18:59
jasonp is offline   Reply With Quote
Old 2009-04-16, 19:17   #13
jordis
 
Jan 2009

23 Posts
Default

I'll try to explain me better.

Msieve 1.41 found the next polynomial:

R0: -8924486172666962366962516
R1: 145411794718189
A0: 168755071662659923747852490418825
A1: -3984467007355947750022001202
A2: 11277970053707868290387
A3: 78231399916697658
A4: -4991900068
A5: 31920
skew 385657.43, size 1.594433e-012, alpha -7.678658, combined = 7.617254e-011

When I tried to determine how good it's the polynomial:
>msieve.exe -v -ns 330001,330101
completed b = 330101, found 22 relations
elapsed time 00:12:28

This is not a good polynomial, then I want to test this:
5748,30224,87384,05200 X^5 + 9882,26191,74822,86102 X^4
- 13392,49938,91281,76685 X^3 + 16875,25245,88776,84989 X^2
+ 3759,90017,48552,08738 X - 46769,93055,39319,05995


The question was,

How do I put the polynomial in a text file that msieve can understand?
jordis is offline   Reply With Quote
Old 2009-04-16, 19:19   #14
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

9A316 Posts
Default

Quote:
Originally Posted by FactorEyes View Post
Ah-yup: I've factored RSA-129 twice now. It's my reference stick, kept under a vacuum-sealed bell jar at a steady temperature.
We use the original RSA155 polynomial a lot for testing the CADO siever. I think we've factored it completely 3 or 4 times or so, but if you sum up the relations found in partial sieving tests, there must have been enough to factor it twenty times over.

Alex
akruppa is offline   Reply With Quote
Old 2009-04-16, 19:36   #15
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3×1,171 Posts
Default

Quote:
Originally Posted by jordis View Post
How do I put the polynomial in a text file that msieve can understand?
you probably want something like this in msieve.fb

Code:

N 1807082088687404805951656164405905566278102516769401349170127021450056662540244048387341127590812303371781887966563182013214880557
SKEW 1.00
R0 -12574411168418005980468
R1 1
A0 -46769930553931905995
A1 3759900174855208738
A2 16875252458877684989
A3 -13392499389128176685
A4 9882261917482286102
A5 5748302248738405200
bsquared is offline   Reply With Quote
Old 2009-04-16, 19:45   #16
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101012 Posts
Default

The msieve polynomial has a very low yield because it has an extremely large amount of skew. You cannot sieve lines around 300k; most of the relations you can find will be below 20k, and to compensate you have to line sieve using lines that are much wider than the default msieve chooses. Compare the yield at 300k with the number of relations you find at 1k. The polynomial is fine, you just cannot sieve with it for very long.

Now use the sieving tools in GGNFS and watch the sieving speed take off.
jasonp is offline   Reply With Quote
Old 2009-04-16, 20:39   #17
jordis
 
Jan 2009

23 Posts
Default

bsquared: Thanks.

With "my" polynomial and same range:

completed b = 330101, found 183 relations
elapsed time 00:12:48


completed b = 1100, found 435 relations
elapsed time 00:11:56


Do you thing that this is a good polynomial?


Jason:

I had factorized RSA120 and I had to get relations near b=1726k (544 relations)
If I want to factorize RSA130 surely I'll need to test larger range?


I use a parallel msieve's modification, I can't use GGNFS :-(
To factorize RSA130 I have almost 70 computers, this is the reason for I want a good polynomial. I have already tested with a not good polynomial and was impossible to factor the number
jordis is offline   Reply With Quote
Old 2009-04-16, 20:56   #18
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

"Your" polynomial has a skew of nearly 1.0, which means the number of relations you get will drop off fairly slowly over a large number of lines. A skew of 1.0 means that the (a,b) number for each relation should have nearly the same size values of 'a' and 'b'.

Msieve's polynomial expects the 'a' values to be 386000 times larger than the 'b' values. This means that virtually all the relations you will find will be for lines less than about 10k. This is far too few for the line sieve in msieve; even if you did all 10k lines, you would only find ~10% of the relations you would need. However, the lattice sieve in GGNFS looks for relations over a much larger area, and can work with this restriction easily.

If you figured out how the GGNFS lattice siever works, with 70 machines you can finish off the sieving for RSA130 in maybe 6 hours. With msieve alone and 'your' polynomial it would need maybe a week.

PS: Now I remember where I first saw you. Your project really will only work with unskewed (skew=1) polynomials because you are limiting yourself to the line sieve in msieve. The code can also generate unskewed polynomials, if you build from source. I would think you would need maybe 10 million lines...

Last fiddled with by jasonp on 2009-04-16 at 21:09
jasonp is offline   Reply With Quote
Old 2009-04-16, 21:08   #19
jordis
 
Jan 2009

108 Posts
Default

Is the "SKEW" value 1 because has to be 1? or is it 1 because bsquared write 1?

Has someone a 130-digit number and its associated polynomial for testing?


Thanks
jordis is offline   Reply With Quote
Old 2009-04-16, 21:57   #20
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101012 Posts
Default

The optimal skew for your polynomial is close to 1. It may be 2 or 3, but any choice around this size will work about the same.

(Msieve doesn't use the skew at all...)

Last fiddled with by jasonp on 2009-04-17 at 02:12
jasonp is offline   Reply With Quote
Old 2009-04-16, 22:13   #21
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

23·3·11 Posts
Default

Quote:
Originally Posted by jordis View Post
I use a parallel msieve's modification, I can't use GGNFS :-(
If you cant`t use GGNFS because Perl or the configuration of factMsieve.pl is the Problem u can try the Ubasic script. Its easy to use with GGNFS and don`t need a configuration.
The Ubasic script and Informations how to use you can read here http://www.mersenneforum.org/showthread.php?t=11438

Regards Andi_HB
Andi_HB is offline   Reply With Quote
Old 2009-04-17, 02:10   #22
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Jordi is involved with a BOINC client that calls the msieve binary (or uses the msieve library directly, he never specified which). Of course, if you can call one binary, it should be easy to call a lattice sieve binary instead...
jasonp is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running msieve polynomial selection in parallel? ryanp Msieve 9 2019-11-16 19:45
reduce number of coefficient for polynomial selection with msieve on GPU aein Factoring 3 2017-02-25 16:42
Polynomial Discriminant is n^k for an n-1 degree polynomial carpetpool Miscellaneous Math 14 2017-02-18 19:46
msieve 1.52 with GPU polynomial selection cgy606 Msieve 16 2016-10-06 14:16
Polynomial R.D. Silverman NFSNET Discussion 13 2005-09-16 20:07

All times are UTC. The time now is 01:06.


Sat Jul 17 01:06:14 UTC 2021 up 49 days, 22:53, 1 user, load averages: 2.35, 1.91, 1.60

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.