mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2012-12-03, 19:49   #12
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2×47×101 Posts
Default

You may have pasted the poly in a file and somehow ended up without a line break?

(Ben, on your part, you could fix the parser in yafu, too, - to read the last line even if it doesn't have a line break?)


P.S. I've tested both polys before I've posted them - the perl script started working fine on each (I had two more, including a monic), and also I had gotten their alphas and Es. They are all workable.

Last fiddled with by Batalov on 2012-12-03 at 19:53
Batalov is offline   Reply With Quote
Old 2012-12-03, 20:14   #13
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3,517 Posts
Default

Quote:
Originally Posted by Batalov View Post
You may have pasted the poly in a file and somehow ended up without a line break?

(Ben, on your part, you could fix the parser in yafu, too, - to read the last line even if it doesn't have a line break?)

I didn't know that was the case... thanks, I'll fix it.
bsquared is online now   Reply With Quote
Old 2012-12-03, 22:46   #14
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2·47·101 Posts
Default

The other possibility would be that Y0 was not pasted into job files at all. Twice.

I don't know either. I admit that I don't have the latest source and even in the one I have, I haven't looked. It was just a wild speculation.
Batalov is offline   Reply With Quote
Old 2012-12-03, 23:36   #15
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by Batalov View Post
You may have pasted the poly in a file and somehow ended up without a line break?
That seems to be it. yafu seems to be processing it now.

Thanks, everyone! No major issues, but enough minor issues that I doubt I would have figured it out on my own.

Edit: Wait, it looks like it's doing GNFS:
Code:
./yafu-linux64 "nfs(84^84-83^83)" -job snfs.job -threads 2


nfs: commencing nfs on c162: 434052638949540480062453005064516466387568940273504907959561408643897140840774339200963955774565218462487550271836485609508404988323997310781276887844297986477749
nfs: commencing polynomial search over range: 1 - 251
nfs: commencing polynomial search over range: 251 - 501
deadline: 800 CPU-seconds per coefficient
deadline: 800 CPU-seconds per coefficient
coeff 252 specialq 1 - 522520 other 252821 - 606770
coeff 12 specialq 1 - 126201 other 379411 - 910586
aprogs: 34208 entries, 48368 roots
aprogs: 47746 entries, 66014 roots
hashtable: 65536 entries,  1.00 MB
coeff 24 specialq 1 - 174400 other 345917 - 830200
aprogs: 43588 entries, 57400 roots
hashtable: 65536 entries,  1.00 MB
coeff 264 specialq 1 - 533986 other 251258 - 603019
aprogs: 32789 entries, 40693 roots
hashtable: 65536 entries,  1.00 MB
coeff 36 specialq 1 - 210727 other 327713 - 786511
aprogs: 42250 entries, 58430 roots
hashtable: 32768 entries,  0.50 MB
coeff 276 specialq 1 - 545179 other 249773 - 599455
aprogs: 33251 entries, 44103 roots
Did I do something wrong?

Last fiddled with by CRGreathouse on 2012-12-04 at 00:04
CRGreathouse is offline   Reply With Quote
Old 2012-12-04, 00:59   #16
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3,517 Posts
Default

Hard to say, but probably not.

Your command line "Just Works" for me, and it immediately starts sieving. Not sure what the issue is.

Is this the latest version of yafu (1.33)?

Sorry for all of the runaround here. The .pl/.py scripts are probably more stable, but I appreciate you running these tests with yafu - its the only way it'll get better!

Last fiddled with by bsquared on 2012-12-04 at 01:10
bsquared is online now   Reply With Quote
Old 2012-12-04, 02:49   #17
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2·47·101 Posts
Default

Also, to remove any possible effects of the state (which is preserved in the files sitting around in the directory that you are using), try making a new clean one, copy only snfs.job there, cd there and retry.

gnfs-162 will take (relatively) ages, abort it!
Batalov is offline   Reply With Quote
Old 2012-12-04, 05:16   #18
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2·47·101 Posts
Default

I was able to foil yafu's evil plans to factor this number. ;-)

On Windows (for the fun of it):
I've downloaded the latest version from SF, planted the snfs.job (without a linebreak in the last line) and started. Lines were added to snfs.job and rlim stuck to the Y0 value! ...and the whole thing failed. Well, I don't have win binaries for the siever, so...

On Linux (moved the same folder):
added linebreak before rlim, edited yafu.ini, and ...off it went just fine.

Last fiddled with by Batalov on 2012-12-04 at 05:18
Batalov is offline   Reply With Quote
Old 2012-12-04, 05:59   #19
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by Batalov View Post
Also, to remove any possible effects of the state (which is preserved in the files sitting around in the directory that you are using), try making a new clean one, copy only snfs.job there, cd there and retry.

gnfs-162 will take (relatively) ages, abort it!
Did that, ran yafu from the new directory. It still ran GNFS as far as I can tell. Here's the file:
Code:
cat snfs.job 
n: 1279722376069429882674916783738587645201002727982137842794710157040169036868965821113429393
skew: 222414.44
type: snfs
size: NNN
c0: 1055355831583822265944960
c1: 110053741356789971224
c2: 155632423969639
c3: -2603265818
c4: 6120
Y0: -3802720129719817966849
Y1: 269924026471
(there's actually a training newline there, but the forum strips it out) and the log

Code:
cat factor.log 
12/04/12 00:56:47 v1.33 @ zed, nfs: commencing gnfs on c162: 434052638949540480062453005064516466387568940273504907959561408643897140840774339200963955774565218462487550271836485609508404988323997310781276887844297986477749
12/04/12 00:56:47 v1.33 @ zed, nfs: commencing poly selection with 2 threads
12/04/12 00:56:47 v1.33 @ zed, nfs: setting deadline of 540000 seconds
I used
Code:
../yafu-linux64 "nfs(84^84-83^83)" -job snfs.job -threads 2

Last fiddled with by CRGreathouse on 2012-12-04 at 06:01
CRGreathouse is offline   Reply With Quote
Old 2012-12-04, 06:26   #20
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

32×29×37 Posts
Default

Do you have something like a "-R" somewhere, in the ini file? The number you are trying to factor in the poly is not 162 digits, but 93 digits (it is not the same n:....), does it has some other factors removed? yafu considers it a different thing. He tries gnfs of the C162. Try supplying the number directly, instead of the power expression (!?)

Edit: took yafu 1.33 from sourceforge, took the poly in post #6, used exactly your command line, without specifying any -r, it is crunching:
(very slow core2 duo, winXP_32bits)

Code:
nfs: checking for data file
nfs: commencing nfs on c162: 434052638949540480062453005064516466387568940273504
90795956140864389714084077433920096395577456521846248755027183648560950840498832
3997310781276887844297986477749
nfs: continuing with sieving - could not determine last special q; using default
 startq
nfs: commencing rational side lattice sieving over range: 2580000 - 2660000
nfs: commencing rational side lattice sieving over range: 2500000 - 2580000
Warning: Ignoring input line:
size: 162

 Warning:  lowering FB_bound to 2499999.
Warning: Ignoring input line:
size: 162

 Warning:  lowering FB_bound to 2579999.
total yield: 8779, q=2581933 (0.01450 sec/rel)

Last fiddled with by LaurV on 2012-12-04 at 06:49
LaurV is offline   Reply With Quote
Old 2012-12-04, 07:26   #21
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Oh... copied the wrong poly. It's working now.
CRGreathouse is offline   Reply With Quote
Old 2012-12-04, 22:38   #22
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

1C3516 Posts
Default

Quote:
Originally Posted by Batalov View Post
I was able to foil yafu's evil plans to factor this number. ;-)

On Windows (for the fun of it):
I've downloaded the latest version from SF, planted the snfs.job (without a linebreak in the last line) and started. Lines were added to snfs.job and rlim stuck to the Y0 value! ...and the whole thing failed. Well, I don't have win binaries for the siever, so...
Whoops! I assumed that even the last line has a newline after it. AFAIKnew, every editor appended a newline to the last line.

The solution would be to read the last character in the file, and see if it's a newline or not, and if not, print one. (The more obvious solution would be to print a newline before rlim; the problem there is that's not deterministically the first thing printed, though I'd be surprised if it ever actually wasn't.) I'm not exactly sure off the top of my head how to do that, though I'm sure it's possible.
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
SNFS polynomials. chris2be8 FactorDB 1 2012-03-10 16:49
SNFS polynomials for k*b^n+-1 mdettweiler Factoring 15 2010-01-14 21:13
fun with snfs masser Sierpinski/Riesel Base 5 36 2008-04-18 02:39
SNFS download roger Factoring 12 2007-10-24 08:45
SNFS Polynomial R.D. Silverman NFSNET Discussion 4 2007-04-11 20:39

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


Mon Aug 2 16:02:06 UTC 2021 up 10 days, 10:31, 0 users, load averages: 1.86, 2.09, 2.18

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.