![]() |
|
|
#1222 |
|
"Rich"
Aug 2002
Benicia, California
2×653 Posts |
Who or why is the database generating hundreds (if not thousands) of C70's and C80's that all share an identical factor?
|
|
|
|
|
|
#1223 | |
|
"Frank <^>"
Dec 2004
CDP Janesville
2×1,061 Posts |
Quote:
Maybe someone was worried about the distributed DB workers running out of easy work! Last fiddled with by schickel on 2011-09-06 at 06:15 Reason: Added PS |
|
|
|
|
|
|
#1224 | |
|
Romulan Interpreter
Jun 2011
Thailand
22·33·89 Posts |
Quote:
I will take this opportunity to ask yoyo again for a small... big favor... I modified the second part of the script to output the report result in a nicer form. Like a small table, and include all possible situations for the answer I could get from the server. It looks much nicer now. However, I am really missing the "partial" reports of yafu. When it says "120/200 curves tested", and so on. If you run yafu separate, you can see the difference. With the script, specially for big numbers available now (C90++), the script is waiting long times without any outputs, giving you a feeling that "it is stuck". I really miss SIQS partial outputs from yafu "xxxx/yyyy relations found", etc). I tried to "fix" this part too, but I ran in something called "buffering I/O's" in perl and I stuck my ears there.... No way to go forward in reasonable amount of time, maybe after few years when my perl knowledge will grow, I would be able to make some progress... :D... I tried to use sys** functions, and other "artifacts" available in perl but my knowledge of perl still crawling, and not fully walking. So, I could not get the effect I wanted. Yoyo, if you have some time, please check my comments inside of the script that I attached here. Hope you understand what I want... Well, now you will say "this guy is difficult to please" or "if you give him a finger..." whatever, if you decide for middle finger it would be ok with me. I just tried :D The script is ok as it is now, but I am a bit of perfectionist, especially when it come to programming... [p.s. rename .zip to .rar if you can't open, the forum won't let me to attach .rar, my winzip/winrar/totalcmd can open the file without rename, but I don't know in your case] |
|
|
|
|
|
|
#1225 |
|
Oct 2006
Berlin, Germany
10011010012 Posts |
Hello,
I took over the second part of your changes (beautifying the output), but wrote it a bit shorter. Code:
#!/bin/perl
use warnings;
use strict;
use LWP::Simple;
while(1){
print "get composites\n";
my $rand=int(rand(1000));
my $contents = get("http://factorization.ath.cx/listtype.php?t=3&mindig=70&perpage=1&start=$rand&download=1");
if (!defined $contents or $contents =~ /[a-z]/ ){
print "$contents\n";
print "Error, no composites fetched\n";
sleep(60);
}
my @composites=split(/\s/, $contents);
foreach my $composite (@composites) {
print "Factoring ".length($composite)." digits: $composite\n";
my @results;
open(YAFU, "yafu factor($composite) |") or die "Couldn't start yafu!";
while (<YAFU>) {
print "$_";
chomp;
if (/^[CP].*? = (\d+)/) {
push( @results, $1 );
print "*****\n";
}
}
close(YAFU);
if ( scalar(@results) > 0 ) {
print "===========================================================================\n";
print "report factors\n";
my $url="http://factorization.ath.cx/report.php?report=".$composite."%3D".join('*',@results);
#print "$url\n";
$contents=get($url);
#print "$contents\n";
my $nofactors = ($contents =~ s/Does not divide//g);
my $already_known = ($contents =~ s/Factor already known//g);
my $added = ($contents =~ s/Factor added//g);
my $small = ($contents =~ s/Small factor//g);
print "\tNew factors added: " . ($added ? $added : 0) . "\n";
print "\tFactors already known: " . ($already_known ? $already_known : 0) . "\n";
print "\tSmall factors: " . ($small ? $small : 0) . "\n";
print "\tErrors (does not divide): " . ($nofactors ? $nofactors : 0) . "\n";
print "===========================================================================\n";
}else {
print "Error, no result found\n";
sleep(60);
}
}
}
die;
Don't know yet how to handle yafu output different. I think the YAFU filehandle must be read in binmode() and not line by line anymore, which makes the further processing more complicated. yoyo Last fiddled with by yoyo on 2011-09-06 at 15:09 |
|
|
|
|
|
#1226 | |
|
Sep 2008
Kansas
24·211 Posts |
Quote:
This could be a fascinating assembly line process... P.S. There was an earlier post suggesting an automated process for identifying and creating an SNFS poly if the number is warranted. |
|
|
|
|
|
|
#1227 | |
|
Oct 2004
Austria
2·17·73 Posts |
Quote:
¿¿¿¿¿¿¿¿¿¿¿¿¿¿ |
|
|
|
|
|
|
#1228 | ||
|
Sep 2008
Krefeld, Germany
2×5×23 Posts |
@yoyo
wow, this project is working perfectly! I added my homecomputer a few days ago and it has done dozens of numbers so far. Quote:
Quote:
Missing the proper error message. |
||
|
|
|
|
|
#1229 |
|
"Sander"
Oct 2002
52.345322,5.52471
29·41 Posts |
|
|
|
|
|
|
#1230 |
|
"Rich"
Aug 2002
Benicia, California
2×653 Posts |
@Syd,
There were a large number of composites introduced today all with the factor 10^40-17. |
|
|
|
|
|
#1231 |
|
Romulan Interpreter
Jun 2011
Thailand
22×33×89 Posts |
Man, what are you trying to show? I can't get it, and you totally puzzled me. You made a habit in walking my paths and showing it in public, or what? We know that flaw, and if one is reporting factors, I see no reason why he should report wrong factors, beside of the case when he is sick. Are ye sick or what? Careful when eating those mushrooms. I don't believe that the small numbers are stored in factor lists in the DB. It would make no sense. It is faster to compute them, than to search for them. They are just discarded, factors or not factors. Why are you wasting your time?
|
|
|
|
|
|
#1232 |
|
Oct 2004
Austria
2·17·73 Posts |
Edit: some mod was faster...
Last fiddled with by Andi47 on 2011-09-09 at 13:57 |
|
|
|
![]() |
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 |