PERL + Number Theory = Lots of RAM Usage

Oct 21, 2003 15:50

Take a look at the following PERL code. When I set $p to 18955451, you can probably guess what happened... the logfile was 650MB! >.<

print "For what number P would you like to test 2^P-1 for primality?\n";
$p = ;
chop($p);
open(LOG,">>primetest.log");
$s = 4;
for($i = 3; $i < $p; $i ( Read more... )

Leave a comment

Comments 2

anonymous October 29 2003, 00:29:31 UTC
hey Colin, this is Jen. Jen as in.... Jen/Lola. Bah, why aren't you EVER online? Huh? HUH? *silence* ....Well anyway I don't understand what PERL is so this message is relatively useless.

Reply

tasorn October 30 2003, 04:09:52 UTC
Never online? Well, uh... the History papers speak for themselves, and other than that... I've been downloading and watching mass quantities of video files from a connection that's actually reliable... >.> It's like time is a thing of the past.

Reply


Leave a comment

Up