mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > FactorDB

Reply
 
Thread Tools
Old 2011-09-05, 23:54   #1222
richs
 
richs's Avatar
 
"Rich"
Aug 2002
Benicia, California

2×653 Posts
Default

Who or why is the database generating hundreds (if not thousands) of C70's and C80's that all share an identical factor?
richs is online now   Reply With Quote
Old 2011-09-06, 06:14   #1223
schickel
 
schickel's Avatar
 
"Frank <^>"
Dec 2004
CDP Janesville

2×1,061 Posts
Default

Quote:
Originally Posted by richs View Post
Who or why is the database generating hundreds (if not thousands) of C70's and C80's that all share an identical factor?
I'm sure we can all think of a few suspects (check near the bottom of this thread....)

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
schickel is offline   Reply With Quote
Old 2011-09-06, 10:05   #1224
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

22·33·89 Posts
Default

Quote:
Originally Posted by wblipp View Post


Looking at the distribution of composites this afternoon, I see that there are no 89 nor 90 digit composites left, and that 88 and 91 digit ones are dropping rapidly.
with yoyo's script walking around it is easier for many of us to contribute, and that is one of the reasons.

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]
Attached Files
File Type: zip yoyo.zip (1.5 KB, 97 views)
LaurV is offline   Reply With Quote
Old 2011-09-06, 15:05   #1225
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

10011010012 Posts
Default

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;
The issue with the continous output of YAFU is, that the while(<YAFU>) loop reads the output line by line. But yafu doesn't finish a line instead it just overwrites the line, no line end is printed. Therefore while() waits until a line end is written by yafu.
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
yoyo is online now   Reply With Quote
Old 2011-09-07, 01:28   #1226
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

24·211 Posts
Default

Quote:
Originally Posted by yoyo View Post
... I set up a small Boinc server ...
Currently C88 and C89 are handled.
Hmm, now all we need is an ECMNet server to handle the ~C96-C130. If the number survives a full ECM run then it gets moved to the poly select queue, then onto the sievers and beyond.

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.
RichD is offline   Reply With Quote
Old 2011-09-07, 04:25   #1227
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default

Quote:
Originally Posted by cmd View Post

¿¿¿¿¿¿¿¿¿¿¿¿¿¿
Andi47 is offline   Reply With Quote
Old 2011-09-07, 18:07   #1228
Syd
 
Syd's Avatar
 
Sep 2008
Krefeld, Germany

2×5×23 Posts
Default

@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:
Originally Posted by RichD View Post
I attempted an inquiry for Aliquot sequence 1840896 and it took several seconds. I was using all the default values. The footnote shows:which is an extremely long time. Is there an index that is not in order?
Thats normal if the sequence is queried the first time, say first time since I had to delete the index table a few weeks ago.


Quote:
Originally Posted by richs View Post
Who or why is the database generating hundreds (if not thousands) of C70's and C80's that all share an identical factor?
not only C70 and C80, C90 to C130. Had to remove ~10k numbers with this factor.
Quote:
Originally Posted by cmd View Post
s!
Missing the proper error message.
Syd is offline   Reply With Quote
Old 2011-09-07, 18:26   #1229
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

Quote:
Originally Posted by Andi47 View Post
¿¿¿¿¿¿¿¿¿¿¿¿¿¿
I deleted cmd's posts.

I think it's time for a new ban....
smh is offline   Reply With Quote
Old 2011-09-07, 21:31   #1230
richs
 
richs's Avatar
 
"Rich"
Aug 2002
Benicia, California

2×653 Posts
Default

@Syd,

There were a large number of composites introduced today all with the factor 10^40-17.
richs is online now   Reply With Quote
Old 2011-09-09, 03:57   #1231
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

22×33×89 Posts
Default

Quote:
Originally Posted by cmd View Post
... C_D ... \o/
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?
LaurV is offline   Reply With Quote
Old 2011-09-09, 13:57   #1232
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default

Edit: some mod was faster...

Last fiddled with by Andi47 on 2011-09-09 at 13:57
Andi47 is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 12:10.


Sat Jul 17 12:10:53 UTC 2021 up 50 days, 9:58, 1 user, load averages: 1.26, 1.48, 1.41

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