Created
May 9, 2013 18:03
-
-
Save TimToady/5549284 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
sub modmap (Int $x is copy, @rads) { | |
gather { | |
while $x and @rads { | |
my $rad = @rads.shift; | |
take $x mod $rad; | |
$x div= $rad; | |
} | |
take $x if $x; | |
} | |
} | |
say modmap 2804985923338703271682399481743033703427656749129565173066, 256 xx *; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment