mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2011-02-16, 21:25   #1
Belteshazzar
 
Feb 2011

25 Posts
Default Newbie advice

Wanting to satisfy curiosity about where the state of the art was in factorization and at the same time do something marginally mathematically useful (rather than, say, RSA factors etc), I saw the thread on factorizations needed for OEIS sequences and decided to try factoring 105!+2 on my laptop (1.86 GHz Core2 Duo).

Yafu 1.23 found the factor 193957 pretty quickly and then started doing ECM on the remaining c163- I let it go for a day or so, had to restart the program, found that the deep pretest option didn't start all that deep after all, and decided to try running gmp-ecm directly instead.

So what I ran was ecm -c 14000 -chkpnt fprogress -n -save residues 11e6 (I was confused by what I'd read in the "Which bits of gmp-ecm are now parallel? " thread and thought that doing the -save would allow for doing stage 2 in parallel later- I'd think that I/O isn't slowing things too much tho since I've got a SSD). Right now it's on run 4287 of 14000, taking about 78 seconds for each step1 and 35 seconds for each step2- it's had ~137 hours of CPU time.

What would be a smarter way to attack this? Am I right to guess that this is too big for NFS etc- especially on this machine? Should I be patient with the current run, change options (esp. B1), try to find a way to run in parallel, or just throw up my hands and leave this work to be done by somebody with a faster machine? If the smallest factor is much bigger than the current target of 45 digits then it's going to be semiprime and the smallest factor could be way out of my reach.
Belteshazzar is offline   Reply With Quote
Old 2011-02-16, 22:05   #2
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

22×3×293 Posts
Default

The best way to parallelize GMP-ECM would be to run two copies of the program at the same time, each loaded with half as many curves. Nothing fancy.

I don't know how many curves have already been thrown at this number, so I can't give advice on what B1 is appropriate. A C163 is certainly within the range of GNFS (although probably not using just your laptop), but it should be pretested with ECM up to at least t50, I think.
bsquared is offline   Reply With Quote
Old 2011-02-16, 22:22   #3
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

164448 Posts
Default

Quote:
Originally Posted by Belteshazzar View Post
Wanting to satisfy curiosity about where the state of the art was in factorization and at the same time do something marginally mathematically useful (rather than, say, RSA factors etc), I saw the thread on factorizations needed for OEIS sequences and decided to try factoring 105!+2 on my laptop (1.86 GHz Core2 Duo).
I thought that this number had already been done?


These days, a C163 is rather easy with GNFS.

I can't imagine though how it might be mathematically useful
in any way.
R.D. Silverman is offline   Reply With Quote
Old 2011-02-16, 22:30   #4
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
I thought that this number had already been done?


These days, a C163 is rather easy with GNFS.

I can't imagine though how it might be mathematically useful
in any way.
It was done. xilman finished it 10 years ago.

Typical newbie. Compute first, ask questions/look up the answer later.
R.D. Silverman is offline   Reply With Quote
Old 2011-02-16, 22:38   #5
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

DBC16 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
It was done. xilman finished it 10 years ago.

Typical newbie. Compute first, ask questions/look up the answer later.
You're probably thinking of 105!+1. He's asking about 105!+2. Not that it is any more or less important, but AFAIK, it has not been completed yet.
bsquared is offline   Reply With Quote
Old 2011-02-16, 23:07   #6
Belteshazzar
 
Feb 2011

25 Posts
Default

"Typical newbie." Way to make a friendly introduction. What a great feeling of community there is around here.

If somebody came asking a bunch of questions without trying some things out themselves you'd dismiss them for failing to demonstrate independent thought. Somebody comes having read the docs and the forum, searched for answers, and put a little effort into doing something themselves, and you're on their case for not having asked before. Nice.

As you might have noticed in my post- if you'd bothered to read it- a thread on this forum just a few months ago said the factorization of 105!+2 is wanted for an OEIS sequence (A063684). Sure, it's not super important or anything- I wasn't claiming it was, just that it had some marginal mathematical utility. If it'd already been done I would have anticipated that somebody would have mentioned that fact in the thread.

The ggnfs documentation says explicitly "In its current state, GGNFS will not factor anything extraordinarily large (i.e., it will not do a 160 digit general number)... Please don't send me an email asking what needs to be fixed - you can discover the issues one at a time by yourself by attempting to factor successively larger and larger numbers (say, 140,145,150,...), until you encounter the problems. " A discussion on this forum a few years ago suggested a c140 would take a couple of months on hardware comparable to mine and had some trouble with convergence. Though I knew the docs were a little out of date and the post was a little old, I would think I might be excused for wondering about the viability of trying that on my machine.

Thanks, bsquared, for your helpful response.
Belteshazzar is offline   Reply With Quote
Old 2011-02-17, 00:07   #7
axn
 
axn's Avatar
 
Jun 2003

2×3×7×112 Posts
Default

Quote:
Originally Posted by Belteshazzar View Post
The ggnfs documentation says explicitly "In its current state, GGNFS will not factor anything extraordinarily large (i.e., it will not do a 160 digit general number)... Please don't send me an email asking what needs to be fixed - you can discover the issues one at a time by yourself by attempting to factor successively larger and larger numbers (say, 140,145,150,...), until you encounter the problems. "
That advice is pre-msieve. Msieve has tremendously advanced polynomial selection and post processing.
Quote:
Originally Posted by Belteshazzar View Post
A discussion on this forum a few years ago suggested a c140 would take a couple of months on hardware comparable to mine and had some trouble with convergence. Though I knew the docs were a little out of date and the post was a little old, I would think I might be excused for wondering about the viability of trying that on my machine
C140 should be doable in your machine in < 2 weeks (using the linux 64-bit optimized siever). C163 should be about 16 times harder (using the doubling-every-6-digits rule).
If you've a CUDA-enabled graphics card, you could potentially improve the polynomial search also.
axn is offline   Reply With Quote
Old 2011-02-17, 00:28   #8
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3×1,181 Posts
Default

You actually should not believe anything the GGNFS documentation (or Chris Monico's web page) says, it was last updated around 2005. The msieve documentation is also very out of date (2007 :), I don't have the time to overhaul it, especially for NFS.
jasonp is offline   Reply With Quote
Old 2011-02-17, 04:14   #9
wblipp
 
wblipp's Avatar
 
"William"
May 2003
New Haven

1001001111102 Posts
Default

Quote:
Originally Posted by Belteshazzar View Post
"Typical newbie." Way to make a friendly introduction. What a great feeling of community there is around here.
Getting dissed by Bob Silverman is a rite of passage here. It's happened to most of us. Think of him as our village curmudgeon, tolerated in spite of his abyssmal social skills because he happens to be a talented mathematician who occasionally drops nuggets among his gripes. Congratulations on achieving this milestone so early in you MersenneForum career.

Last fiddled with by wblipp on 2011-02-17 at 05:07 Reason: typo rite
wblipp is offline   Reply With Quote
Old 2011-02-17, 04:26   #10
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101101111002 Posts
Default

Ah yes, I still have memories of my rite of passage... it's somewhere in the homogeneous cunninghams thread, I think.

Last fiddled with by wblipp on 2011-02-17 at 05:07 Reason: typo rite
bsquared is offline   Reply With Quote
Old 2011-02-17, 10:22   #11
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

22×5×72×11 Posts
Default

Quote:
Originally Posted by wblipp View Post
Getting dissed by Bob Silverman is a rite of passage here.
And if not here, likely somewhere else on the interweb thingy.

My advice to newbies is two-fold. Pay attention to Bob's advice (but don't necessarily follow it to the letter) and grow a thick skin,

Paul
xilman is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
need tablet pc advice for newbie mom jasong jasong 10 2010-12-25 05:27
Advice for PSU em99010pepe Hardware 1 2010-01-31 23:48
Looking for advice for a new PC.... petrw1 Hardware 39 2009-07-11 13:38
P95 newbie looking for advice francais Hardware 2 2008-04-23 01:01
New LMH needs advice. M0CZY Lone Mersenne Hunters 2 2005-05-24 20:05

All times are UTC. The time now is 02:33.


Mon Aug 2 02:33:40 UTC 2021 up 9 days, 21:02, 0 users, load averages: 2.25, 2.01, 2.01

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.