Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Multiplication digit persistence

by johngg (Canon)
on Mar 28, 2019 at 11:47 UTC ( [id://1231800]=note: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1231800]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found