Help for this page

Select Code to Download


  1. or download this
    2 * 3 * 4 * 5 * 6 =
    |   |       |   |
    ...
    12 * 60 =
    
    120
    
  2. or download this
    sub fact8{
      #divide and conquer without recursion
    ...
    perl fact.pl 5000
    Method 8 (new func): 28 wallclock secs (28.65 usr +  0.00 sys = 28.65 
    +CPU)
    Method 7 (your func): 30 wallclock secs (29.06 usr +  0.00 sys = 29.06
    + CPU)