Help for this page

Select Code to Download


  1. or download this
    my $tempA = Math::BigInt->new($a); 
    $b = $tempA->bmodpow($M,$n);      #set b = a^m
    
  2. or download this
    use Math::BigInt;     #allows big integers needed for this algorithm
    
    ...
    }