![]() |
|
|
#1 |
|
Sep 2009
2×1,039 Posts |
Hello,
I'm using SNFS to factor some of the smaller composites in factordb. I'm using code copied from firejuggler's yafu.pl script from http://mersenneforum.org/showthread.php?t=16359&page=3 post 65. But it only seems to work about half the time. An example failure is when I generate the url: http://factorization.ath.cx/report.php?report=(10^110*4513+883)/9985751%3D67180229841217849970082301271*672733594449015022926507086465812106323889333502525331018102445134797068313923 I can't see any difference between requests that work and those that fail. Should I update my script to try again a few times if the update fails? Or is there a more robust technique? Chris K |
|
|
|
|
|
#2 |
|
Sep 2008
Kansas
24·211 Posts |
I ran into a length problem so I changed it to two inquiries. Given your example I would fetch the internal ID first by:
Code:
http://factordb.com/index.php?query=%2810%5E110*4513+883%29%2F9985751 Code:
wget -q -O /dev/null --post-data="report=67180229841217849970082301271&format=0" http://factordb.com/index.php?id=1100000000456380365 This may not be the best way to report it but it works for me. |
|
|
|
|
|
#3 | |
|
Jun 2007
Moscow,Russia
7×19 Posts |
Quote:
Code:
"%" -> "%25"
"!" -> "%21"
"+" -> "%2B"
"(" -> "%28"
")" -> "%29"
"/" -> "%2F"
"^" -> "%5E"
"#" -> "%23"
The attach below is modified version of yoyo perl script (http://www.rechenkraft.net/wiki/inde...:Yoyo/factordb), which is used to factor numbers from input file by yafu and post results to factordb. This script can handle numbers with any patterns shown above. You need yafu binary and yafu.in with numbers in the same folder with attach. factor_in.zip Last fiddled with by VolMike on 2012-03-29 at 10:29 |
|
|
|
|
|
|
#4 |
|
Sep 2009
2·1,039 Posts |
Thanks VolMike, that looks to have fixed it. 5 results so far after adding it to my script, all OK.
I've also got code to write an error report if I don't get either a "Factor added" or "Factor already known" in the response. That will catch other issues such as my internet connection failing. Chris K |
|
|
|
|
|
#5 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
http://www.blooberry.com/indexdot/ht...rlencoding.htm Last fiddled with by Dubslow on 2012-03-29 at 19:35 Reason: and characters with special meaning must also be encoded. |
|
|
|
|
|
|
#6 |
|
Sep 2009
81E16 Posts |
I've had another look, now I know what to look for I can see that it didn't like a + in the url. Every attempt with a + in it failed, all but 1 of the rest worked (I think the exception was the router rebooting itself at the wrong moment). With the + encoded they all work.
Chris |
|
|
|
|
|
#7 |
|
Sep 2008
Kansas
24·211 Posts |
Sorry, that was my mistake above for misleading you with the + sign.
Thanks to VolMike for pointing that out - and the other symbols. I've been doing some work with OPN and it never has a plus sign in any of the expressions. (Now back to correcting my program should one day I need it for a + sign.) |
|
|
|
|
|
#8 |
|
Sep 2009
81E16 Posts |
Does anyone have any perl code I could "borrow" to query factordb to see if a given number is factored? I'm finding quite a lot of the small composites I'm working on have been factored by someone else when I submit the factors. A check just before I start work should save wasted effort.
I could probably write some myself, but it will take time I'm short of. Chris |
|
|
|
|
|
#9 |
|
"Daniel Jackson"
May 2011
14285714285714285714
66310 Posts |
Any number <65 digits is automatically factored by the DB.
|
|
|
|
|
|
#10 | |
|
Oct 2006
Berlin, Germany
617 Posts |
Quote:
yoyo |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| report not updating ??? | nobody | Information & Answers | 3 | 2012-04-26 14:31 |
| Updating GNFS parameters | bchaffin | Aliquot Sequences | 6 | 2011-06-23 17:36 |
| exponent not updating problem | Nestea80 | Information & Answers | 3 | 2008-12-04 16:47 |
| User information on WWW.NFSNET.ORG not updating | xavion | NFSNET Discussion | 1 | 2003-10-12 04:32 |
| Status Updating | SatishM | Software | 4 | 2003-04-05 16:08 |