Help for this page

Select Code to Download


  1. or download this
    U64 gcm4( U64 max, U64 n ) {
        U64 c, lcm;
    ...
        lcm = n * 4096;
        return ( max / lcm ) * lcm;
    }
    
  2. or download this
    anonyM:  gcm for s=2147483648 & r=1 to 1073741824 took:33.850345514550
    +  ### original
    anonyM: gcm4 for s=2147483648 & r=1 to 1073741824 took:33.590549831120
    +  ### my tweak