Help for this page

Select Code to Download


  1. or download this
    use Time::HiRes 'time';
    my $t = time;
    ...
    3.33010196685791
    8.4802930355072
    
  2. or download this
    _cache_collatz( $_ ) for 1 .. 1e6;
    say scalar %cache;
    ...
    2168611
    2168611