![]() |
![]() |
#34 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
1110001000002 Posts |
![]() Quote:
However, I've done about 7000, 25dd composites and at the same time, the count of 25dd composites rose from ~116k to ~163k. That seems to be in the wrong direction. And, my other machines are still offline. |
|
![]() |
![]() |
![]() |
#35 |
"Alexander"
Nov 2008
The Alamo City
3·163 Posts |
![]()
Do you have a script (Linux) I can borrow? I might put a core or two on this in a day or so. Seems more helpful than the low-end aliquot sequences I'm working on now.
|
![]() |
![]() |
![]() |
#36 |
Jul 2018
31 Posts |
![]()
Here is some python: https://github.com/penlu/factoring
The code is messy and variously suboptimal. Let me know if something is broken or if you need additional information to get it working. To avoid repeatedly poking disk with msieve's save files, I run it as: Code:
TMPDIR=/dev/shm python worker2.py |
![]() |
![]() |
![]() |
#37 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
25×113 Posts |
![]() Quote:
Code:
#!/bin/bash/################################ # Note that this script uses two temporary # files: dbTemp and dbSuccess. It will alter # and delete previous files with these names. # This script is single threaded. If using # multiple instances, you should keep track # of the hourly limits for factordb. ############################################ digitsize=25 totalrun=5 printf "Factoring $totalrun composites:\n\n" for ((n=0;n<totalrun;n++)) do startt=SECONDS randomnumber=$(echo $((10 + RANDOM % 1000))) wget "http://factordb.com/listtype.php?t=3&mindig=${digitsize}&perpage=1&start=$randomnumber&download=1" -q -O dbTemp exec <"dbTemp" read composite in echo "Composite $((${n}+1)) of $totalrun is $composite <${#composite}>" temp=$(echo "factor($composite, 10^7)" | gp -f -q) temp=$(echo "${temp//\n/}" | xargs) temp=$(echo "${temp// 1]/}") temp=$(echo "${temp//]/}") temp=$(echo "${temp//[/*}") temp=$(echo "${temp//' '/}") printf "Factors are ${temp:1} <$((${SECONDS}-${startt}))s>\n\n" returnfactors=${composite}%3D${temp:1} wget "http://factordb.com/report.php?report=$returnfactors" -q -O dbSuccess done echo "Total time for $n composites was $SECONDS seconds." rm dbTemp Last fiddled with by EdH on 2020-11-21 at 16:12 Reason: Bug erradication! |
|
![]() |
![]() |
![]() |
#38 | |
Sep 2009
3·23·29 Posts |
![]() Quote:
I've had to update my scripts to wait for a few minutes before trying again when they see something like that. And dump whatever they received to a log where I can see it. I've also seen messages like: Code:
1040: SQLSTATE[HY000] [1040] Too many connections Chris |
|
![]() |
![]() |
![]() |
#39 |
"Ed Hall"
Dec 2009
Adirondack Mtns
25×113 Posts |
![]()
Actually, I wasn't anywhere near the hourly limits, but I think what I hit was, "You have reached the maximum of 4 parallel processing requests (?). Please wait a few seconds and try again." I had so many machines that were all factoring so fast, they hit the limit of 4 requests at once. And, other machines kept accessing fine, but the affected ones wouldn't correct themselves once they started failing.
I'm working on a bash script, based on the one posted, that runs the gp function first, and then runs YAFU, if factors are not found. YAFU doesn't seem to be giving me the really small factors (in factor.log) for all these multiple prime composites. I'm hoping to build in checking for a composite, because the Python script I was using couldn't seem to fix itself. For my own use, I also have a machine that tracks composites that have been started so they "shouldn't" be started by another machine before being finished by the first. That's where the "already factored" comes from. In this case it was actually referring to the HTML messages as triggering that one. Edit: P.S. Thanks again for the gp code. Last fiddled with by EdH on 2020-11-18 at 20:20 |
![]() |
![]() |
![]() |
#40 | |
"Curtis"
Feb 2005
Riverside, CA
467010 Posts |
![]() Quote:
Maybe I'll try the python script tomorrow, so I can do "real" elf work. |
|
![]() |
![]() |
![]() |
#41 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
E2016 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#42 |
"Ed Hall"
Dec 2009
Adirondack Mtns
25·113 Posts |
![]()
Well, Bummer! I ran into the "maximum of 4 parallel processing requests" mentioned before, in a too big way. Because of my scripts running factoring continuously, once this occurred, the machines kept trying until all my machines got involved whenever each one completed its current factorization. This quickly overran the "Page requests" limit and effectively knocked my whole "farm" out, until I told them all to stop. I'm implementing some code to (hopefully) keep this from happening again (or, at least often).
The above trouble shouldn't affect the script I posted earlier, since I expect no one to run it on more than a few threads, but let me know if I should edit it as well. Now, what happened? I thought everything below 70 digits was gone, but now 75k have shown back up while I was locked out. I'm not egotistical enough to think they appeared because I wasn't running my machines. . . |
![]() |
![]() |
![]() |
#43 | |
Aug 2020
23 Posts |
![]() Quote:
On 15th November, someone enter a number of form bn with b<20000 and n<1000 or somewhere around that ballpark. Since then DB slowly determined whether each number is prime, and while doing so produced a factor which is product of small prime. When that factor is more than 19 digit it won't get factor more. (I think the DB automatically does this for all unknown number less than 20,000 digits). This is where those small composite came from. The problem is there might be up to 10^7 unknown number waiting in queue, according to Distribution of numbers by digits. Those will continue to produce small composite for quite a while. |
|
![]() |
![]() |
![]() |
#44 |
Jul 2018
31 Posts |
![]()
I can't get enough numbers to run into the page request limit. Instead I've been running into the "IDs created" limit. Submitting a factorization of a number into a product of many small (< 10000) primes seems to create many IDs; I don't understand why.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a tool that picks off small composites constantly? | fivemack | FactorDB | 14 | 2018-02-07 17:00 |
Command-line program for factoring small numbers | James Heinrich | Software | 22 | 2011-08-29 16:35 |
What's the point of factoring known composites? | ixfd64 | PrimeNet | 4 | 2011-02-21 11:51 |
A small factoring program | Yamato | Factoring | 2 | 2007-11-21 23:29 |
Factoring of composites with near factors - request for data | AntonVrba | Factoring | 3 | 2006-02-05 06:30 |