![]() |
[QUOTE=cgy606;288431]I am new here and have recently downloaded YAFU 1.30. I am currently factoring 99!+1 using the factor() function.[/QUOTE]
I hope that you using this number to become familiar with the software - the factors are [URL="http://factorization.ath.cx/index.php?id=1000000000002850123"]already known[/URL] |
[QUOTE=wblipp;288501]I hope that you using this number to become familiar with the software - the factors are [URL="http://factorization.ath.cx/index.php?id=1000000000002850123"]already known[/URL][/QUOTE]
Thank you. Another quick question, what is the command line in yafu 1.30 to tell it to only run facotr (ecm and all the other algorithms before siqs,nfs in factor()) up to a certain number of curves, display all found factors then to stop factoring the number (no siqs, or nfs). e.g. I want to factor a C200 with the standard ecm stage progression: 30 curves at B1=2K, 74 curves at B1=11K, .... , 904 curves at B1=1M (or say 1680 curves at B1=3M ect.) and stop at a particular bound (or number of curves). Thanks, |
[QUOTE=cgy606;288816]Thank you. Another quick question, what is the command line in yafu 1.30 to tell it to only run facotr (ecm and all the other algorithms before siqs,nfs in factor()) up to a certain number of curves, display all found factors then to stop factoring the number (no siqs, or nfs). e.g. I want to factor a C200 with the standard ecm stage progression: 30 curves at B1=2K, 74 curves at B1=11K, .... , 904 curves at B1=1M (or say 1680 curves at B1=3M ect.) and stop at a particular bound (or number of curves). Thanks,[/QUOTE]
Read docfile.txt that came with the distribution. You want to use the -pretest_ratio and -pretest switches. |
[QUOTE=bsquared;288825]Read docfile.txt that came with the distribution. You want to use the -pretest_ratio and -pretest switches.[/QUOTE]
Thank you. I looked up the documentation of logfile and batchfile functions. I am trying a command like this: factor(50!+3) -logfile(50fac3.txt) and it didn't work. I also tried, factor(50!+3) -LOGFILE(50fac3.txt) factor(50!+3) -LOGFILE("50fac3.txt") factor(50!+3) -LOGFILE 50fac3.txt factor(50!+3) -LOGFILE "50fac3.txt" factor(50!+3) -LOGFILE(50fac3) but none of them also worked. What is the proper way to do this? I also want to know if in batchfile, if each line could be a different factor saved to a different logfile. Thank you, |
The switch is case sensitive:
[CODE]factor(50!+3) -logfile 50fac3.txt[/CODE] should work. you may also need quotes around the factor command - some interpreters might not like the ('s or the ! [CODE]yafu.exe "factor(50!+3)" -logfile 50fac3.txt[/CODE] There is no current way to make each line of a batchfile output to a different logfile. You could always write your own batchfile, or a perl script. |
flags
[QUOTE=bsquared;288825]Read docfile.txt that came with the distribution. You want to use the -pretest_ratio and -pretest switches.[/QUOTE]
Furthermore, none of the flags work as they are suppose to. According to the documentation the following command should not even run ecm: factor(100!+1) -PLAN(NONE) yet it runs ecm curves. The documentation shows all of these flags as lower case syntax, yet yafu 1.30 doesn't even recognize the commands and doesn't run the function. When I switch to uppercase syntax, it runs the function but when it finishes, it prints something like: "invalid character in str2hexz" "wrong number or arguments in sub/neg" |
[QUOTE=bsquared;288827]The switch is case sensitive:
[CODE]factor(50!+3) -logfile 50fac3.txt[/CODE] should work. you may also need quotes around the factor command - some interpreters might not like the ('s or the ! [CODE]yafu.exe "factor(50!+3)" -logfile 50fac3.txt[/CODE] There is no current way to make each line of a batchfile output to a different logfile. You could always write your own batchfile, or a perl script.[/QUOTE] I tried these commands and they don't work. I get the following: "unrecognized character in input" |
It's not a problem with yafu - the things I suggested work on every platform I make binaries for. What OS do you have? How exactly are you typing the commands?
|
[QUOTE=cgy606;288829]I tried these commands and they don't work. I get the following:
"unrecognized character in input"[/QUOTE] what OS do you have? for me, all mentioned commands work according with the docs, assuming you write them right, as explained in the doc, and not how you assume it could be. [CODE] >yafu factor(50!+3) -plan none [/CODE] produced in few seconds the factor log file: [CODE] **************************** Starting factorization of 30414093201713378043612608166064768844377641568960512000000000003 using pretesting plan: none using tune info for qs/gnfs crossover **************************** final ECM pretested depth: 0.00 scheduler: switching to sieve method starting SIQS on c62: 77389550131586203673314524595584653548034711371400793893129771 random seeds: 0, 226434000 ==== sieve params ==== n = 64 digits, 211 bits factor base: 4848 primes (max prime = 99991) single large prime cutoff: 5999460 (60 * pmax) allocating 2 large prime slices of factor base buckets hold 2048 elements sieve interval: 2 blocks of size 65536 polynomial A has ~ 8 factors using multiplier of 35 using SPV correction of 20 bits, starting at offset 33 using SSE2 for trial division and x64 sieve scanning trial factoring cutoff at 72 bits ==== sieving started ( 2 threads) ==== trial division touched 217845 sieve locations out of 4013162496 4951 relations found: 2536 full + 2415 from 22476 partial, using 15309 polys (242 A polys) on average, sieving found 1.63 rels/poly and 3126.50 rels/sec trial division touched 217845 sieve locations out of 4013162496 ==== post processing stage (msieve-1.38) ==== begin with 25012 relations reduce to 7022 relations in 2 passes recovered 7022 relations recovered 5597 polynomials attempting to build 4951 cycles found 4951 cycles in 1 passes distribution of cycle lengths: length 1 : 2536 length 2 : 2415 largest cycle: 2 relations matrix is 4848 x 4951 (0.6 MB) with weight 126194 (25.49/col) sparse part has weight 126194 (25.49/col) filtering completed in 4 passes matrix is 4434 x 4498 (0.5 MB) with weight 112885 (25.10/col) sparse part has weight 112885 (25.10/col) commencing Lanczos iteration memory use: 0.7 MB lanczos halted after 72 iterations (dim = 4429) recovered 62 nontrivial dependencies prp9 = 248108011 prp54 = 311918788190947222874292940890105533706586811384340161 Lanczos elapsed time = 0.2030 seconds. Sqrt elapsed time = 0.0160 seconds. SIQS elapsed time = 8.2187 seconds. Total factoring time = 8.2188 seconds [/CODE] |
[QUOTE=LaurV;288832]what OS do you have? for me, all mentioned commands work according with the docs, assuming you write them right, as explained in the doc, and not how you assume it could be.
[CODE] >yafu factor(50!+3) -plan none [/CODE] produced in few seconds the factor log file: [CODE] **************************** Starting factorization of 30414093201713378043612608166064768844377641568960512000000000003 using pretesting plan: none using tune info for qs/gnfs crossover **************************** final ECM pretested depth: 0.00 scheduler: switching to sieve method starting SIQS on c62: 77389550131586203673314524595584653548034711371400793893129771 random seeds: 0, 226434000 ==== sieve params ==== n = 64 digits, 211 bits factor base: 4848 primes (max prime = 99991) single large prime cutoff: 5999460 (60 * pmax) allocating 2 large prime slices of factor base buckets hold 2048 elements sieve interval: 2 blocks of size 65536 polynomial A has ~ 8 factors using multiplier of 35 using SPV correction of 20 bits, starting at offset 33 using SSE2 for trial division and x64 sieve scanning trial factoring cutoff at 72 bits ==== sieving started ( 2 threads) ==== trial division touched 217845 sieve locations out of 4013162496 4951 relations found: 2536 full + 2415 from 22476 partial, using 15309 polys (242 A polys) on average, sieving found 1.63 rels/poly and 3126.50 rels/sec trial division touched 217845 sieve locations out of 4013162496 ==== post processing stage (msieve-1.38) ==== begin with 25012 relations reduce to 7022 relations in 2 passes recovered 7022 relations recovered 5597 polynomials attempting to build 4951 cycles found 4951 cycles in 1 passes distribution of cycle lengths: length 1 : 2536 length 2 : 2415 largest cycle: 2 relations matrix is 4848 x 4951 (0.6 MB) with weight 126194 (25.49/col) sparse part has weight 126194 (25.49/col) filtering completed in 4 passes matrix is 4434 x 4498 (0.5 MB) with weight 112885 (25.10/col) sparse part has weight 112885 (25.10/col) commencing Lanczos iteration memory use: 0.7 MB lanczos halted after 72 iterations (dim = 4429) recovered 62 nontrivial dependencies prp9 = 248108011 prp54 = 311918788190947222874292940890105533706586811384340161 Lanczos elapsed time = 0.2030 seconds. Sqrt elapsed time = 0.0160 seconds. SIQS elapsed time = 8.2187 seconds. Total factoring time = 8.2188 seconds [/CODE][/QUOTE] I tried exactly what you did. Here is my window: 02/09/12 21:11:40 v1.30 @ COMPUTERBOX, System/Build Info: Using GMP-ECM 6.3, Powered by GMP 5.0.1 detected Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz detected L1 = 32768 bytes, L2 = 3145728 bytes, CL = 64 bytes measured cpu frequency ~= 2183.231400 =============================================================== ======= Welcome to YAFU (Yet Another Factoring Utility) ======= ======= [email]bbuhrow@gmail.com[/email] ======= ======= Type help at any time, or quit to quit ======= =============================================================== cached 78498 primes. pmax = 999983 >> yafu factor(50!+3) -plan none unrecognized token: yafufactor >> |
[QUOTE=bsquared;288827]The switch is case sensitive:
[CODE]factor(50!+3) -logfile 50fac3.txt[/CODE] should work. you may also need quotes around the factor command - some interpreters might not like the ('s or the ! [CODE]yafu.exe "factor(50!+3)" -logfile 50fac3.txt[/CODE] There is no current way to make each line of a batchfile output to a different logfile. You could always write your own batchfile, or a perl script.[/QUOTE] I am using Windows 7. Here is the window with your commands: 02/09/12 21:15:20 v1.30 @ COMPUTERBOX, System/Build Info: Using GMP-ECM 6.3, Powered by GMP 5.0.1 detected Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz detected L1 = 32768 bytes, L2 = 3145728 bytes, CL = 64 bytes measured cpu frequency ~= 2178.408880 =============================================================== ======= Welcome to YAFU (Yet Another Factoring Utility) ======= ======= [email]bbuhrow@gmail.com[/email] ======= ======= Type help at any time, or quit to quit ======= =============================================================== cached 78498 primes. pmax = 999983 >> factor(50!+3) -logfile 50fac3.txt unrecognized character in input >> yafu.exe "factor(50!+3)" -logfile 50fac3.txt unrecognized character in input >> |
| All times are UTC. The time now is 22:03. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.