mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2015-01-08, 07:18   #12
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·32·191 Posts
Default

Quote:
Originally Posted by Hailstone View Post
Wow. Thanks for all the replies everyone. I think specifying the exact filepath worked for me, but I'll try a relative filepath with the next factoring job.

Is there any way to get yafu (or msieve, I'm not picky) to factor a list of numbers (one at a time). And does running multiple instances of either program mess things up for those instances? I'm trying to run home prime sequences base 12 and I have quite a few sequences to test.

EDIT: Looking at the results of factor( *C104* ) -R, I think running multiple instances breaks it. Oy.
Details of breaking: two instances trying to open rels0.dat at once
yafu has a batchfile input system. It looks like this:

Code:
yafu.exe "factor(@)" -batchfile worktodo.txt
Put the numbers or expressions (like 10^117+11) you want to work on in worktodo.txt (or any other name), one on each line. If you just want to run ecm or nfs then you can put that in place of "factor" in the command shown. You might want to keep a copy of your input file - yafu will delete lines from the file as it finishes them.

msieve also has a batchfile input. I believe you can just redirect a file to it.

Running multiple instances in the same folder is a bad idea, for either yafu or msieve . Use multiple folders.

cheers!
bsquared is online now   Reply With Quote
Old 2015-01-08, 12:28   #13
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

5×1,889 Posts
Default

Quote:
Originally Posted by bsquared View Post
10^117+11
[nitpick]divisible by 3
(as it has 3 ones and lots of zeroes)
[/nitpick]
LaurV is offline   Reply With Quote
Old 2015-01-08, 19:33   #14
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

477910 Posts
Default

Quote:
Originally Posted by LaurV View Post
[nitpick]divisible by 3
(as it has 3 ones and lots of zeroes)
[/nitpick]
And yafu would then factor the cofactor, right? So this input is legitimate?
VBCurtis is online now   Reply With Quote
Old 2015-01-08, 20:58   #15
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101011011102 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
And yafu would then factor the cofactor, right? So this input is legitimate?
Yes. It was just an example, any input on a line is run through the indicated function. LaurV is just being LaurV
bsquared is online now   Reply With Quote
Old 2015-01-09, 05:30   #16
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

5·1,889 Posts
Default

Hehe, exactly as BB said.
I was just boasting my knowledge about divisibility by 3 in base 10, you know, adding all the digits, check if sum is divisible by 3... blah blah...
(oh, I forgot about that icon...)
Ț... ț... ț... ț...

Last fiddled with by LaurV on 2015-01-09 at 05:31
LaurV is offline   Reply With Quote
Old 2015-01-11, 10:00   #17
Hailstone
 
Jan 2015

22·7 Posts
Default

This isn't a particularly big question, so I'll post it here.

What happens at each successive -v? How many times can you type -v -v -v, etc before it stops having any effect?
Hailstone is offline   Reply With Quote
Old 2015-01-11, 14:48   #18
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

67218 Posts
Default

For GMP-ECM, about 3.
jasonp is offline   Reply With Quote
Old 2015-01-11, 18:42   #19
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·32·191 Posts
Default

Quote:
Originally Posted by Hailstone View Post
This isn't a particularly big question, so I'll post it here.

What happens at each successive -v? How many times can you type -v -v -v, etc before it stops having any effect?
In yafu, it is different for different functions. Most functions have nothing higher than 1, some use 2 or 3, I know nothing goes higher than 3.
bsquared is online now   Reply With Quote
Old 2015-01-12, 02:24   #20
Hailstone
 
Jan 2015

22×7 Posts
Default

Alright. I'm mostly using factor() at the moment. How about that?

Also, out of curiosity, how long, approximately, would testing ECM to t40 take?
Hailstone is offline   Reply With Quote
Old 2015-01-12, 02:30   #21
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

34·59 Posts
Default

Quote:
Originally Posted by Hailstone View Post
Alright. I'm mostly using factor() at the moment. How about that?

Also, out of curiosity, how long, approximately, would testing ECM to t40 take?
The time taken depends on the size of the input number. A t40 is 2300ish curves at B1 = 3e6, B2 default. So, you can time a single curve at 3e6 on your system, and extrapolate.

You can use the -v flag with ecm executable to see how many curves are needed to "complete" a level for any B1 you wish. Yafu uses the standard B1 values 250k, 1m, 3m, 11m, etc; but other choices are more efficient on some architectures (by 5 to 10%, not all that meaningful).
VBCurtis is online now   Reply With Quote
Old 2015-01-12, 13:28   #22
Hailstone
 
Jan 2015

22×7 Posts
Default

New YAFU error

nfs: checking for job file - job file found, testing for matching input
nfs: number in job file matches input
nfs: checking for data file
nfs: no data file found
nfs: commencing nfs on c107: 469856446232013978367253986033967753119943490635204
13168428437176598568862206816570614917343800187684480511
nfs: parsed lpbr = 26, lpba = 26
nfs: continuing with sieving - could not determine last special q; using default
startq
nfs: commencing algebraic side lattice sieving over range: 1404000 - 1418000
nfs: commencing algebraic side lattice sieving over range: 1390000 - 1404000
'.\gnfs-lasieve4I12e.exe' is not recognized as an internal or external command,
operable program or batch file.
'.\gnfs-lasieve4I12e.exe' is not recognized as an internal or external command,
operable program or batch file.
nfs: could not open output file, possibly bad path to siever
nfs: could not open output file, possibly bad path to siever
fopen error: No such file or directory
could not open rels0.dat for reading
Hailstone is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lattice Sieving Parameters paul0 Factoring 6 2015-11-20 21:12
Lattice Sieving - where do I start? paul0 Factoring 3 2015-03-09 13:54
Line sieving vs. lattice sieving JHansen NFSNET Discussion 9 2010-06-09 19:25
A question on lattice sieving joral Factoring 5 2008-04-03 08:01
Initialization for lattice sieving jasonp Factoring 16 2006-01-12 22:53

All times are UTC. The time now is 17:07.

Tue May 11 17:07:20 UTC 2021 up 33 days, 11:48, 1 user, load averages: 4.96, 4.18, 3.55

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.