Created
November 4, 2011 17:05
-
-
Save djacobs/1339858 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use POSIX; | |
use bignum; | |
use constant DEBUG => 0; | |
my $count = 0; | |
my $x = 2 ** 1043; | |
my @s = split(//,$x."a"); | |
DEBUG and print $x, "\n"; | |
while (!($s[0] eq 'a')) | |
{ | |
$count += shift(@s); | |
DEBUG and print "☃"; | |
} | |
print $count, "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
☃