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... )
Comments 2
Reply
Reply
Leave a comment