![]() |
|
|
#1519 |
|
Sep 2008
Kansas
337610 Posts |
The small prp worker hasn't been active for a couple days.
|
|
|
|
|
|
#1520 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
Is there a way to get an .elf file without causing the db to do an entire check of all the existing entries prior to supplying it? Or, possibly an .elf file of only the last line, since Aliqueit can work from there?
Specific example: I request the .elf for 4788 - about 13 minutes later, I receive the .elf. I run Aliqueit to clean out any small/medium factors and come up with a current cofactor (Cxxx). I factor the current Cxxx. I supply the factors to the db. If I check the last 20 lines (or, just the last line) via the web page, the factors have been processed. If I now ask for a new .elf, the db goes off for another 13+ minutes: Code:
--2013-10-25 20:04:00-- http://www.factordb.com/elf.php?seq=4788&type=1
Resolving www.factordb.com (www.factordb.com)... 176.9.39.214
Connecting to www.factordb.com (www.factordb.com)|176.9.39.214|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `alq_4788.elf'
[ <=> ] 989,858 357K/s in 2.7s
2013-10-25 20:17:05 (357 KB/s) - `alq_4788.elf' saved [989858]
Thanks for any help. |
|
|
|
|
|
#1521 | |
|
"Frank <^>"
Dec 2004
CDP Janesville
41128 Posts |
Quote:
|
|
|
|
|
|
|
#1522 | |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11·347 Posts |
Quote:
Code:
wget 'http://www.factordb.com/elf.php?seq=4788&type=1' -O alq_4788.elf
--2013-10-26 00:08:15-- http://www.factordb.com/elf.php?seq=4788&type=1
Resolving www.factordb.com (www.factordb.com)... 176.9.39.214
Connecting to www.factordb.com (www.factordb.com)|176.9.39.214|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `alq_4788.elf'
[ <=> ] 989,858 403K/s in 2.4s
2013-10-26 00:10:50 (403 KB/s) - `alq_4788.elf' saved [989858]
I'll probably go ahead and write something to parse the html code for a single line retrieval. Although it will be a pain, once it's done, I should be able to cut down the wait and the db use. And, I need more work with my regex studies. ![]() Thanks for all the help... Last fiddled with by EdH on 2013-10-26 at 04:28 Reason: added Thanks |
|
|
|
|
|
|
#1523 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
I wrote a script that now functions in a couple seconds, if that long. Here's what it does:
1. retrieves the html of the last line of an aliquot sequence 2. harvests the id of the final cofactor, since the display of that cofactor is compressed: NNNN...NN 3. retrieves the html of the id from above 4. harvests the cofactor It hits the db twice now, instead of once, but each hit is so brief, it should be well less load than having the db go through an entire sequence creating an .elf. |
|
|
|
|
|
#1524 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
There has been some interest in the aforementioned script, so I'm providing it here for review and any correction/advancement it may need. It is currently a bash function and is presented that way (sorry, no internal comments):
Code:
function getnum {
wget 'http://www.factordb.com/sequences.php?se1&aq='$alqnum'&type=1&action=last' -O temp$alqnumll
exec <"temp$alqnumll"
while read line
do
case $line in
*"=110000"*) position=1
while [ $position -gt 0 ]
do
line=${line:${position}+3}
position=`expr index "$line" ?`
done
idline=$line;;
esac
done
position=`expr index "$idline" \"`
idline=${idline:0:${position}-1}
wget 'http://www.factordb.com/index.php?id='${idline} -O temp$alqnumcf
exec <"temp${alqnumcf}"
while read line
do
case $line in
*"query"*) line=${line:42}
position=`expr index "$line" =`
line=${line:$position+1}
line=${line:0:${#line}-2}
ecmIn=$line;;
esac
done
echo ${ecmIn} >${direct}ecmIn
}
Code:
#!/bin/bash
alqnum=4788
function getnum {
...
}
getnum
echo $ecmIn
getnum is called --the fist section queries the db for the last line, which is returned as an html page into the file temp4788ll, which is then parsed for the id of the last cofactor, which is then fed to the second section --the second section queries the db for the number associated with the id from the first section, with this html page returned as temp4788cf, which is then parsed for the cofactor itself In my example the cofactor is sent to a file named ecmIn and echoed to the screen. All comments welcome... |
|
|
|
|
|
#1525 |
|
Sep 2008
Kansas
24·211 Posts |
A plain text file for an expanded number, without having to parse the html code, one could use:
Code:
http://factordb.com/getnumber.php?id=<id_num> Code:
--post-data=report=<factor>&format=3 http://factordb.com/index.php?id=<id_num> |
|
|
|
|
|
#1526 | |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
Quote:
![]() Thanks! This will help a lot. Where can I get a "list" or such of all the things I can do with the db? Is this a .php thing and if I learn all about .php, I'll know all these things? |
|
|
|
|
|
|
#1527 | |
|
Sep 2008
Kansas
24×211 Posts |
Quote:
The complete subset is posted in this forum. Seriously, I think someone else has asked the same thing but Syd is too busy and barely has time to keep his site running, though admirably I would have to say. |
|
|
|
|
|
|
#1528 |
|
"Dana Jacobsen"
Feb 2011
Bangkok, TH
22·227 Posts |
It looks like 1100000000259766196 has a verified certificate but is still marked as a PRP. I've reverified the certificate with two different verifiers, so that doesn't seem to be a problem.
|
|
|
|
|
|
#1529 |
|
"Rich"
Aug 2002
Benicia, California
130610 Posts |
Some clown has been flooding the database with hundreds of composites all containing the factor 99999999999999999999999999999999999999999999959.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Database for k-b-b's: | 3.14159 | Miscellaneous Math | 325 | 2016-04-09 17:45 |
| Factoring database issues | Mini-Geek | Factoring | 5 | 2009-07-01 11:51 |
| database.zip | HiddenWarrior | Data | 1 | 2004-03-29 03:53 |
| Database layout | Prime95 | PrimeNet | 1 | 2003-01-18 00:49 |
| Is there a performance database? | Joe O | Lounge | 35 | 2002-09-06 20:19 |