nterms=200000000 nthreads=1 Main: now waiting for other threads... Thread thread #1: a=1 b=200000001 Thread thread #1 sumab = 19.6910435919144 Main: total sum = 19.6910435919144 nterms=200000000 nthreads=2 Main: now waiting for other threads... Thread thread #1: a=1 b=100000001 Thread thread #2: a=100000001 b=200000001 Thread thread #1 sumab = 18.9978964138526 Thread thread #2 sumab = 0.693147178059741 Main: total sum = 19.6910435919123 nterms=200000000 nthreads=3 Main: now waiting for other threads... Thread thread #3: a=133333334 b=200000001 Thread thread #2: a=66666667 b=133333334 Thread thread #1: a=1 b=66666667 Thread thread #3 sumab = 0.405465109358139 Thread thread #1 sumab = 18.5924312982437 Thread thread #2 sumab = 0.693147184310161 Main: total sum = 19.691043591912 nterms=200000000 nthreads=4 Main: now waiting for other threads... Thread thread #2: a=50000001 b=100000001 Thread thread #4: a=150000001 b=200000001 Thread thread #3: a=100000001 b=150000001 Thread thread #1: a=1 b=50000001 Thread thread #2 sumab = 0.693147175559714 Thread thread #4 sumab = 0.287682071618549 Thread thread #3 sumab = 0.405465106441426 Thread thread #1 sumab = 18.3047492382933 Main: total sum = 19.691043591913 harm: start: summing from 1 to 200000001 harm: finish: sum from 1 to 200000001 = 19.691 main: harmonic sum from 1 to 200000000 = 19.691 harm: start: summing from 1 to 100000001 harm: start: summing from 100000001 to 200000001 harm: finish: sum from 100000001 to 200000001 = 0.693147 harm: finish: sum from 1 to 100000001 = 18.9979 main: harmonic sum from 1 to 200000000 = 19.691 harm: start: summing from 1 to 66666667 harm: start: summing from 133333333 to 199999999 harm: start: summing from 66666667 to 133333333 harm: finish: sum from 1 to 66666667 = 18.5924 harm: finish: sum from 133333333 to 199999999 = 0.405465 harm: finish: sum from 66666667 to 133333333 = 0.693147 main: harmonic sum from 1 to 200000000 = 19.691 harm: start: summing from 1 to 50000001 harm: start: summing from 100000001 to 150000001 harm: start: summing from 50000001 to 100000001 harm: start: summing from 150000001 to 200000001 harm: finish: sum from 1 to 50000001 = 18.3047 harm: finish: sum from 150000001 to 200000001 = 0.287682 harm: finish: sum from 100000001 to 150000001 = 0.405465 harm: finish: sum from 50000001 to 100000001 = 0.693147 main: harmonic sum from 1 to 200000000 = 19.691