mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2022-03-26, 23:08   #320
BudgieJane
 
BudgieJane's Avatar
 
"Jane Sullivan"
Jan 2011
Beckenham, UK

2×5×31 Posts
Default

Quote:
Originally Posted by bsquared View Post
Actually, I'm wrong, you have to have one -v for it to *say* that it parsed the .ini file. It will parse it correctly regardless of what it says, it's just a reporting problem.
So the workaround is to do nothing. I can live with that.

Thank you.
BudgieJane is offline   Reply With Quote
Old 2022-03-28, 16:11   #321
ConceptJunkie
 
"Rick Gutleber"
Apr 2021
Leesburg, VA, USA

22 Posts
Default

So, in general, I discovered, completely by trial and error, that when YAFU crashes on a particular number, it will usually work if you increase rhomax enough in yafu.ini.

I use a value of 1000 by default, but occasionally come across numbers that will crash yafu until I increase it to 10000, 20000 or even 100000. I usually use yafu to look for long aliquot sequences, and seldom factor numbers larger than about 100 digits.

As a novice, I don't know what that setting actually does, besides making factoring take a bit longer, but for fellow novices, I thought it was worth mentioning.
ConceptJunkie is offline   Reply With Quote
Old 2022-03-28, 17:57   #322
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

5·11·41 Posts
Default

I would like to find some documentation as to how to use it.
storm5510 is offline   Reply With Quote
Old 2022-04-11, 14:16   #323
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

2·3·181 Posts
Default

With the current version, I still get matrix must have more columns than rows in SIQS sometimes.
Example:
Code:
starting SIQS on c81: 422751689472424067829539206601508400436611125331139179502143148987658541073541313
random seed: 17192571071955053739
kruoli is offline   Reply With Quote
Old 2022-04-11, 14:17   #324
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

2×3×181 Posts
Default

Quote:
Originally Posted by storm5510 View Post
I would like to find some documentation as to how to use it.
Do you mean this?
kruoli is offline   Reply With Quote
Old 2022-04-11, 16:21   #325
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

5·11·41 Posts
Default

Quote:
Originally Posted by kruoli View Post
Do you mean this?
That would be it. I have problems navigating Github for some reason.
storm5510 is offline   Reply With Quote
Old 2022-04-26, 14:24   #326
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

3,793 Posts
Default

Just a suggestion that would be (very) useful to me, perhaps others: output results in JSON format. I'm thinking something along the lines of:
Code:
{
  "input-expression":"2^123/17",
  "input-decimal:"625519056839960410778262146014279800",
  "factors-prime":["2","2","2","3","3","5","5","7","11","13","31","41","61","151","241","331","1321"],
  "factors-composite":["281406274007041"],
  "ecm-curves":{"2000":30, "11000":74, "50000":216, "250000":432},
  "ecm-levels":{"t15":38.02, "t20":11.32, "t25":1.06, "t30":0.07, "sum":25.34},
  "time-start":"2022-04-25 16:25:34",
  "time-end":"2022-04-25 18:34:56",
  "runtime":{"total":7762.123, "ecm":762.456, "pm1":16.95, "siqs":7654.32}
}
(most of the above is made up for demonstration purposes)
The idea being to make a consistent, easily-parsable output format that can contain all the relevant information in one place. Undoubtedly there are some other values that can/should be included, the beauty is they can be added (or be missing) without breaking any parsing.
Obviously this output is only sane when an assignment is completed and can't be output during runtime as is done to factor.log but it would be an additional output.

Last fiddled with by James Heinrich on 2022-05-04 at 18:54
James Heinrich is offline   Reply With Quote
Old 2022-05-02, 21:10   #327
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

2·3·181 Posts
Default

While James's suggestion might be a lot of work, I find it tremendeous! Especially the example is really neat in regards to which data might/can be included.
kruoli is offline   Reply With Quote
Old 2022-05-04, 17:11   #328
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

70628 Posts
Default

A lot of this info is fairly easily available at the end of a factorization:
Code:
cat factor.json
{
        "input-expression":"factor(2^351-1)",
        "input-decimal":"4586997231980143023221641790604173881593129978336562247475177678773845752176969616140037106220251373109247",
        "factors-prime":["7","73","79","937","6553","8191","86113","29121769","7830118297","571890896913727","93715008807883087","150832426800173710177","446473","121369"],
        "factors-composite":["262657"],
        "ecm-levels" : [],
        "runtime" : ["total":0.4672, "ecm":0.0000, "pm1":0.0133, "pp1":0.0000, "siqs":0.0421, "nfs":0.0000],
}
{
        "input-expression":"factor(2^371-1)",
        "input-decimal":"4809815209520810450717656262224562232065397860164239095208531909697964083434718092213655548692006303809402830847",
        "factors-prime":["127","743","2969","6361","69431","20394401","63781899287","204712366597949333831","145980337155634444285232523876979318451464756266456641329"],
        "ecm-levels" : ["t15":43.89,"t20":12.78,"t25":1.18,"t30":0.07],
        "runtime" : ["total":3.3807, "ecm":1.8949, "pm1":0.5183, "pp1":0.0000, "siqs":0.0000, "nfs":0.0000],
}
That's what I have so far. All I know about JSON comes from looking at James's post, so keep that in mind. I'm basically just copying the formatting I saw. If something is broken let me know. The good thing is that this is an extra file, and won't break anything else. I can keep looking for low-hanging fruit to add to the output.

Last fiddled with by bsquared on 2022-05-04 at 17:12 Reason: code tags
bsquared is offline   Reply With Quote
Old 2022-05-04, 17:33   #329
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

379310 Posts
Default

Quote:
Originally Posted by bsquared View Post
That's what I have so far. All I know about JSON comes from looking at James's post
That's great!

Wikipedia of course has a decent rough overview of JSON syntax.
And looking at that I see I made a mistake in my example: arrays (with no explicit keys, such as the list of factors) are specified with square brackets, but objects (in my example used as arrays with named keys) should be specified with curly braces.
So "ecm-curves", "ecm-levels", "runtime" should change from [square] to {curly}. Sorry about that.


edit: I'm not sure why "factors-composite":["262657"], shows in your first example since that's prime. Or perhaps this was just a hand-edited example?

Last fiddled with by James Heinrich on 2022-05-04 at 17:35
James Heinrich is offline   Reply With Quote
Old 2022-05-04, 18:31   #330
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·23·79 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
That's great!

Wikipedia of course has a decent rough overview of JSON syntax.
And looking at that I see I made a mistake in my example: arrays (with no explicit keys, such as the list of factors) are specified with square brackets, but objects (in my example used as arrays with named keys) should be specified with curly braces.
So "ecm-curves", "ecm-levels", "runtime" should change from [square] to {curly}. Sorry about that.


edit: I'm not sure why "factors-composite":["262657"], shows in your first example since that's prime. Or perhaps this was just a hand-edited example?
Thanks for the fix! I'm reading the syntax page but I will likely rely heavily on users to tell me when things are broken. The composite example was actually a bug... it's now fixed.

Code:
 cat factor.json
{
        "input-expression":"factor(2^351-1)",
        "input-decimal":"4586997231980143023221641790604173881593129978336562247475177678773845752176969616140037106220251373109247",
        "input-argument-string":"factor(2^351-1) -v ",
        "factors-prime":["7","73","79","937","6553","8191","86113","262657","29121769","7830118297","571890896913727","93715008807883087","150832426800173710177","446473","121369"],
        "pm1-curves" : {"150000":1},
        "runtime" : {"total":0.5976, "ecm":0.0000, "pm1":0.0149, "pp1":0.0000, "siqs":0.0418, "nfs":0.0000},
        "time-start" : "2022-05-04  13:26:58",
        "time-end" : "2022-05-04  13:26:59",
}
{
        "input-expression":"factor(2^371-1)",
        "input-decimal":"4809815209520810450717656262224562232065397860164239095208531909697964083434718092213655548692006303809402830847",
        "input-argument-string":"factor(2^371-1) -v -plan deep ",
        "factors-prime":["127","743","2969","6361","69431","20394401","63781899287","204712366597949333831","145980337155634444285232523876979318451464756266456641329"],
        "pm1-curves" : {"150000":1},
        "ecm-curves" : {"2000":48,"11000":96,"50000":214},
        "ecm-levels" : {"t15":40.03,"t20":11.50,"t25":1.06,"t30":0.07},
        "runtime" : {"total":1.4576, "ecm":0.4515, "pm1":0.0472, "pp1":0.0000, "siqs":0.0000, "nfs":0.0000},
        "time-start" : "2022-05-04  13:27:07",
        "time-end" : "2022-05-04  13:27:08",
}
bsquared is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
yafu ignoring yafu.ini chris2be8 YAFU 9 2022-02-17 17:52
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
YAFU-1.34 bsquared YAFU 119 2015-11-05 16:24
Yafu bug. storflyt32 YAFU 2 2015-06-29 05:19
yafu 1.32 bsquared YAFU 28 2012-07-20 16:17

All times are UTC. The time now is 08:15.


Thu Aug 11 08:15:44 UTC 2022 up 35 days, 3:03, 2 users, load averages: 1.23, 1.33, 1.43

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔