Automatic integer factoring for 310-digit decimal numbers
Is here some software, which is capable of factoring a 310-digit decimal integer number into primes? There was msieve, which I successfully used for 120-digit factoring, but 310 digit is greater than max allowed number of 308-digit for msieve.
PS: the number to factor have 2 prime factors, and p-1,p+1 and other easy and fast factoring methods are l开发者_JAVA百科ikely to fail.
UPDATE: Seems only GGNFS will work and there are some python scripts to automate factoring.
Use Lenstra's EC algorithm if it's not a semiprime. Otherwise use Pomerance's NFS. Good introductions exist for both of these "boxes." My bet is to browse the homepages of Lenstra and Pomerance, they're both really good at exposition. Or check out "Number Theory: A Programmers Guide", by Mark Herkommer. It's just what you need, nothing more, and very clear.
EDIT: Although 1000 bit modulus may be a bit of a stretch, assuming you have conventional hardware.
EDIT: Sure, some additional links: http://tinyurl.com/herkAmzon for the Herkommer book.
A 1987 paper on EC factoring from Hendrik Lenstra's homepage : Factoring integers with elliptic curves, Ann. of Math. 126, 649-673..
From the vast net : A very simple Python source code for the above algorithm (which I haven't proofread)
Carl Pomerance's homepage and a relevant paper on the Number Field Sieve is here
However, you may also find useful this narrative on the sieve's development, or this exposition on the quadratic version also from Pomerance's page.
Check out this site dedicated to an implementation of the GNFS, but I strongly recommend finding a copy of the Herkommer book which contains clear simple source code on a few pages.
EDIT : Also consider running the factoring across the Elastic Compute cloud. I hear a guy does it overnight for $75 as per this WiRED article
精彩评论