You guys, I wrote a perl program to calculate the 13 million digits of 2**43_112_609-1:
use bignum only => "GMP"; # GMP added later use strict; my $x = 43_112_609; warn "x isa " . ref($x). "!\n"; my $y = ( (2**$x) - 1 ); open my $out, ">", "huge.txt" or die $!; print $out "huge prime: ", $y, "\n";
I mean, I know bignum isn't exactly news, but I just think it's a very cool package.
ref: daily galaxy: ultimate-prime.html
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bignum rocks 2^43_112_609-1
by JavaFan (Canon) on Sep 29, 2008 at 14:30 UTC | |
by salva (Canon) on Sep 29, 2008 at 15:09 UTC | |
by jettero (Monsignor) on Sep 29, 2008 at 15:18 UTC | |
by salva (Canon) on Sep 29, 2008 at 15:45 UTC | |
by syphilis (Archbishop) on Sep 30, 2008 at 12:34 UTC | |
by RatKing (Acolyte) on Oct 06, 2008 at 14:24 UTC | |
by jettero (Monsignor) on Oct 06, 2008 at 14:27 UTC | |
by jettero (Monsignor) on Sep 29, 2008 at 15:03 UTC | |
|
Re: bignum rocks 2^43_112_609-1
by Anonymous Monk on Sep 29, 2008 at 12:18 UTC | |
|
Re: bignum rocks 2^43_112_609-1
by bart (Canon) on Oct 06, 2008 at 14:44 UTC | |
by jettero (Monsignor) on Oct 06, 2008 at 15:17 UTC | |
|
Re: bignum rocks 2^43_112_609-1
by swampyankee (Parson) on Oct 07, 2008 at 02:17 UTC |