mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2020-02-17, 12:27   #1
Mathlover
 
Feb 2020

3 Posts
Default large number factoring in YAFU

how do i send large numbers from a file to yafu to factor.
i tried copy pasting, but it did not work.
Mathlover is offline   Reply With Quote
Old 2020-02-17, 13:47   #2
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

22×809 Posts
Default

How large is "large"? Yafu has had issues in the past with numbers that are too big. But here is one way to do it:

./yafu "factor(@)" < yourfile.txt

Last fiddled with by bsquared on 2020-02-17 at 13:47 Reason: question
bsquared is offline   Reply With Quote
Old 2020-02-17, 14:26   #3
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

2,767 Posts
Default

In WIN you can do this:
create a file called "f.bat" with
Code:
echo factor(%1) | yafu-x64
and call in a CLI-window like "f 1234566".
"yafu-x64.exe" and "yafu.ini" have to be in the same folder.
kar_bon is offline   Reply With Quote
Old 2020-02-24, 07:58   #4
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

37×227 Posts
Default

Haha, so funny Karsten, a little bit roundabout way to do so, if you are anyhow going to create a batch file, just write into it

yafu factor(%1)

or

yafu factor(12345)

But his problem is not how to call yafu, neither your solution, not mine, solves his problem. Instead of having a batch and typing "f 12345", he could type "yafu factor(12345)" and he doesn't need a batch at all. I don't think his problem is the additional characters to type, but the number itself (to which b2 already responded). You just put a man in the middle (the batch).

Last fiddled with by LaurV on 2020-02-24 at 08:00
LaurV is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Yafu to factor a large number jibanes YAFU 61 2018-07-12 23:11
Inefficient behaviour in yafu when doing large NFS with lots of threads 2147483647 YAFU 3 2016-12-25 21:44
RSA Key Factoring using Yafu rxz7545 YAFU 4 2016-12-19 07:54
Factoring 1024-bit number using Yafu Anyone YAFU 30 2015-09-01 13:25
Yafu crash after factoring this number al3ndaleeb YAFU 3 2015-05-30 19:54

All times are UTC. The time now is 06:59.

Tue Apr 7 06:59:53 UTC 2020 up 13 days, 4:32, 2 users, load averages: 1.81, 1.42, 1.55

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