mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > FactorDB

Reply
 
Thread Tools
Old 2011-07-16, 14:38   #1134
schickel
 
schickel's Avatar
 
"Frank <^>"
Dec 2004
CDP Janesville

2×1,061 Posts
Default

Quote:
Originally Posted by Syd View Post
Thank you! These limits were determined by experiment, so they are not 100% accurate. But they dont need to be.



Sure:

http://factordb.com/stat_1.php?prp
Thanks for that!

BTW, in case I haven't said it this week yet, great resource you have....it's making things over at the Aliquot forum very easy to manage!
schickel is offline   Reply With Quote
Old 2011-08-06, 08:54   #1135
10metreh
 
10metreh's Avatar
 
Nov 2008

2×33×43 Posts
Default

The DB is being incredibly slow and is getting lots of "server is taking too long to respond" errors on Firefox. Is someone dumping loads of useless numbers into the DB again?
10metreh is offline   Reply With Quote
Old 2011-08-06, 13:57   #1136
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×19×101 Posts
Default

Quote:
Originally Posted by 10metreh View Post
The DB is being incredibly slow and is getting lots of "server is taking too long to respond" errors on Firefox. Is someone dumping loads of useless numbers into the DB again?
At this time, for me, all seems fine - normal (quick) response time, about 22M composites without known factors... [Fedora - Firefox]
EdH is offline   Reply With Quote
Old 2011-08-08, 09:15   #1137
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

226778 Posts
Default

How actual the "Smallest numbers without known factors (sorted by digits only)" are? I have no idea about the things you are talking here, and where that numbers are coming from (I did not read all the thread, just followed last links) but some of that numbers seems quite easy to factor (under 100 digits) and I could dedicate some CPU time to factor some of them if they are really needed. For example this one took under 10 minutes on Dario's applet:

Code:
4728913920212267541311160316535971501621745162863049097438144927735315373737931=
612275446716620701510495422889598831071 x
7723507361876867225411296165036058400661.
(listed on position 2 on the list, 79 digits)

Last fiddled with by LaurV on 2011-08-08 at 09:15
LaurV is offline   Reply With Quote
Old 2011-08-08, 09:35   #1138
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

290810 Posts
Default

Quote:
Originally Posted by LaurV View Post
How actual the "Smallest numbers without known factors (sorted by digits only)" are?

See here for the countinge of small composites and here for a list.

See also this post for a automated scripts to get, factor and submit those small composites.

PS: The workers of the FactorDB will factor those small composites by time. You can do this best with the script above, or using yafu (it's faster than the applet) manually.

PPS: Sorry, fire :D

Last fiddled with by kar_bon on 2011-08-08 at 09:40
kar_bon is offline   Reply With Quote
Old 2011-08-08, 09:36   #1139
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

2×1,303 Posts
Default

This list list all the composite which are not fctored in the db, thats all. there is a script written in perl that grab 100 number of that list, factor them and send them back to the database. you need to have yafu/msieve and wget installed
Code:
#!H:\strawbery\perl
use strict;

print("FactorDB Helper 1.4 with yafu\n");

# wget executable
my $wget = "H:/Docume~1/Vincent/Bureau/script/wget --no-check-certificate";

## min and max number of digits to factor
my $mindig = 5;
my $maxdig = 75;

$| = 1;
$/ = undef;

sub shuffle {
    for ( my $i = 0 ; $i < @_ ; $i++ ) {
        my $j = rand( @_ - $i ) + $i; # pick random element
        ( $_[$i], $_[$j] ) = ( $_[$j], $_[$i] ); # swap 'em
    }
}

while (1) {
    
    my @todo;

    # getting 100 random unfactored numbers
    $_ = `$wget -O - "http://factordb.com/getrandom.php?n=100&t=3&mindig=$mindig&maxdig=$maxdig"`;

    # or getting 100 smallest unfactored numbers
    #$_ = `$wget -O - "http://factordb.com/listtype.php?t=3&scriptmode=1"`;

    while (/(\d{19})\s(\d+)/gs) {

        my $id = $1;
        my $digits = $2;

        if ( ( $digits >= $mindig ) && ( $digits <= $maxdig ) ) {
            push( @todo, $id );
        }
    }

    print( "Todo size: ", scalar(@todo), "\n" );

    if ( scalar(@todo) == 0 ) {
        print("No suitable numbers. Resting for a while.\n");
        sleep 60;
        next;
    }

    shuffle(@todo);

    foreach (@todo) {
        my $id = $_;

        # checking status and getting the number in decimal
        $_ = `$wget -O - http://factordb.com/getnumber.php?id=$id`;
        if ( !/(\S+)\s(\d+)/ ) {
            print("Error 1\n");
            sleep 60;
            next;
        }

        if ( $1 != "C" ) {
            print("\nid=$id has known factors / is already factored.\n\n");
            next;
        }

        my $number = $2;
        my $digits = length($number);

        print("Factoring $digits-digit number (id=$id)\n");

       my $yafu = "H:/Docume~1/Vincent/Bureau/script/yafu \"factor($number)\" >joo.log";
        system($yafu);

        my $text = do { local ( @ARGV, $/ ) = "joo.log"; <> };
        print "Num: $number\nResults:\n";
        my @results;

        my @out = split( "\n", $text );
        for (@out) {
            if (/P.*? = (\d+)/) {
                push( @results, $1 );
                print "$1\n";
            }
        }

        unlink "joo.log";

        if ( scalar(@results) > 0 ) {
            my $factors = join("\n",@results);
            $_ = `$wget --post-data "report=$factors&format=0" -O - http://factordb.com/index.php?id=$id`;
        }
        else {
            print("Error 2\n");
            sleep 60;
        }
    }
}
this code is in the earlier answer of this thread.
edit : damn you kar_bon, damn you!

Last fiddled with by firejuggler on 2011-08-08 at 09:38
firejuggler is offline   Reply With Quote
Old 2011-08-08, 09:48   #1140
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

226778 Posts
Default

Thanks both of you. Meantime I figured it out how it works and reported a bunch of the small already (including the one mentioned in my previous post). It is a bit boring to do it by hand, but it is fun and I found it out that it takes about the same time to factor one of the smallest numbers from the database using yafu as it would take to play a freecell game (I am quite a fast player :P) and I will return to this database from time to time when I have nothing to do for a couple of minutes. I believe it is more useful then playing freecell hehe. I bookmarked it.
LaurV is offline   Reply With Quote
Old 2011-08-08, 13:46   #1141
cmd
 
cmd's Avatar
 
"(^r'°:.:)^n;e'e"
Nov 2008
;t:.:;^

17478 Posts
Exclamation

Quote:
Originally Posted by LaurV View Post
Thanks both of you. Meantime I figured it out how it works and reported a bunch of the small already (including the one mentioned in my previous post). It is a bit boring to do it by hand, but it is fun and I found it out that it takes about the same time to factor one of the smallest numbers from the database using yafu as it would take to play a freecell game (I am quite a fast player :P) and I will return to this database from time to time when I have nothing to do for a couple of minutes. I believe it is more useful then playing freecell hehe. I bookmarked it.
Math can do all !
cmd is offline   Reply With Quote
Old 2011-08-08, 14:57   #1142
schickel
 
schickel's Avatar
 
"Frank <^>"
Dec 2004
CDP Janesville

41128 Posts
Default

Quote:
Originally Posted by LaurV View Post
How actual the "Smallest numbers without known factors (sorted by digits only)" are? I have no idea about the things you are talking here, and where that numbers are coming from (I did not read all the thread, just followed last links) but some of that numbers seems quite easy to factor (under 100 digits) and I could dedicate some CPU time to factor some of them if they are really needed.
The "smallest composites" are the leftovers from factoring larger numbers. If you click through to a lot of them they have the form (expression)/x/y/z. <expression> is the original number, while x, y, & z are other factors found by various means.

Don't worry about anything under 70 digits, the DB-local workers will factor those quicker than you can download, factor, and upload them.

For numbers over that, you have a couple of options. kar_bon mentioned and firejuggler posted scripts that you can run that factor numbers >70 digits. There are several forum members that do that.

Or you can go to the download tab and grab a larger set. What I do when I have some time on a non-dedicated PC is download the 1000 numbers, trim out the smaller ones, and then run "msieve -e" against them.

Depending on how much ECM has been run against them by the DB and/or uploader, sometimes you can factor quite a few in a couple of hours...
schickel is offline   Reply With Quote
Old 2011-08-09, 01:39   #1143
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

3×3,221 Posts
Default

Quote:
Originally Posted by schickel View Post
Don't worry about anything under 70 digits...
I don't, because I did not see any. It seems that only "over 70" are added to that list, most probably "under 70" are automatically taken care by the server without adding them to that list. Or at least that was my impression after spending a couple of hours on database yesterday. In fact it is said somewhere there that the exponents under 70 digits are factored by I don't know which machine on that list. So I took care yesterday (gmt+7 here) of everything that appeared under 82 bits. That was fun, and quite suitable task for me, who I am quite impatient and don't like waiting days to see some factors :D

(running yafu and Dario's applet, manually, in "stealing clocks" mode, that means: they don't have their own core, as all cores are busy with other - longer - tasks)

P.S. love your avatar!

Last fiddled with by LaurV on 2011-08-09 at 01:52
LaurV is offline   Reply With Quote
Old 2011-08-09, 02:30   #1144
Syd
 
Syd's Avatar
 
Sep 2008
Krefeld, Germany

2×5×23 Posts
Default

Quote:
Originally Posted by 10metreh View Post
The DB is being incredibly slow and is getting lots of "server is taking too long to respond" errors on Firefox. Is someone dumping loads of useless numbers into the DB again?
This time it was the googlebot. I had no robots.txt ready to avoid it crawling the page so it also "crawled" lots of scan-buttons. When I logged in on the server the load average was >300, lots of ecm jobs running.
I dont see any need to have the factordb in google, therefore disabled it completely.

Quote:
Originally Posted by LaurV View Post
I don't, because I did not see any. It seems that only "over 70" are added to that list, most probably "under 70" are automatically taken care by the server without adding them to that list. Or at least that was my impression after spending a couple of hours on database yesterday. In fact it is said somewhere there that the exponents under 70 digits are factored by I don't know which machine on that list. So I took care yesterday (gmt+7 here) of everything that appeared under 82 bits. That was fun, and quite suitable task for me, who I am quite impatient and don't like waiting days to see some factors :D
Smaller numbers can get on that list, but they are factored too quick to be on that list for longer than a few seconds.

I'm wondering if it would make sense to factor some numbers around 90 digits with a good snfs poly using snfs. Just factored (2^298*419+911)/281 (90 digits) as a test, it took ~5 minutes to get 1M relations + 1 minute for postprocessing using msieve, yafu/siqs took >30 minutes.
Syd is offline   Reply With Quote
Reply

Thread Tools


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 06:20.


Fri Aug 6 06:20:23 UTC 2021 up 14 days, 49 mins, 1 user, load averages: 3.43, 2.88, 2.82

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.