Help for this page

Select Code to Download


  1. or download this
        my $prod = Math::BigInt->new( 1 );
        $prod->bmul( $_ ) for split m{}, $nVal->bstr();
    
  2. or download this
        my $prod = Math::BigInt->new( 1 );
        my %digits;
    ...
              ? Math::BigInt->new( $_ )->bpow( $digits{ $_ } )
              : $_
              } keys %digits;
    
  3. or download this
    use 5.018;
    use warnings;
    ...
            $maxSteps = $actualSteps;
        }
    }
    
  4. or download this
    Generating 2-digit values ... found 45, took 0.000142s
    Trying 2-digit values, at elapsed time 0.000142s
    ...
            
    Total elapsed time 11.593337s
    
  5. or download this
    Generating 26-digit values ... found 18156204, took 4m 56.352544s
    Trying 26-digit values, at elapsed time 4m 56.352544s
    ...
                               
    Total elapsed time 8h 55m 47.367434s