PRIME_OPENMP C/OpenMP version Number of processors available = 8 Number of threads = 1 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 1 0 0.000004 2 1 0.000002 4 2 0.000001 8 4 0.000001 16 6 0.000002 32 11 0.000001 64 18 0.000004 128 31 0.000008 256 54 0.000024 512 97 0.000091 1024 172 0.000309 2048 309 0.001078 4096 564 0.003938 8192 1028 0.014291 16384 1900 0.047179 32768 3512 0.163264 65536 6542 0.612458 131072 12251 2.297931 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 5 3 0.000002 50 15 0.000002 500 95 0.000070 5000 669 0.004744 50000 5133 0.365286 500000 41538 29.997984 PRIME_OPENMP Normal end of execution. PRIME_OPENMP C/OpenMP version Number of processors available = 8 Number of threads = 2 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 1 0 0.000065 2 1 0.000001 4 2 0.000001 8 4 0.000001 16 6 0.000001 32 11 0.000001 64 18 0.000002 128 31 0.000005 256 54 0.000015 512 97 0.000070 1024 172 0.000193 2048 309 0.000721 4096 564 0.002528 8192 1028 0.009117 16384 1900 0.033722 32768 3512 0.121702 65536 6542 0.453923 131072 12251 1.718196 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 5 3 0.000002 50 15 0.000001 500 95 0.000051 5000 669 0.003550 50000 5133 0.272875 500000 41538 22.459525 PRIME_OPENMP Normal end of execution. PRIME_OPENMP C/OpenMP version Number of processors available = 8 Number of threads = 4 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 1 0 0.000146 2 1 0.000001 4 2 0.000001 8 4 0.000001 16 6 0.000001 32 11 0.000001 64 18 0.000001 128 31 0.000003 256 54 0.000009 512 97 0.000032 1024 172 0.000110 2048 309 0.000380 4096 564 0.001411 8192 1028 0.005146 16384 1900 0.019491 32768 3512 0.070610 65536 6542 0.267016 131072 12251 1.007440 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 5 3 0.000013 50 15 0.000002 500 95 0.000031 5000 669 0.002056 50000 5133 0.159513 500000 41538 13.204281 PRIME_OPENMP Normal end of execution. PRIME_OPENMP C/OpenMP version Number of processors available = 8 Number of threads = 8 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 1 0 0.000184 2 1 0.000001 4 2 0.000001 8 4 0.000001 16 6 0.000001 32 11 0.000001 64 18 0.000002 128 31 0.000003 256 54 0.000008 512 97 0.000023 1024 172 0.000081 2048 309 0.000280 4096 564 0.001073 8192 1028 0.003893 16384 1900 0.014944 32768 3512 0.052607 65536 6542 0.190397 131072 12251 0.713174 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 5 3 0.000069 50 15 0.000001 500 95 0.000021 5000 669 0.001394 50000 5133 0.098421 500000 41538 8.387368 PRIME_OPENMP Normal end of execution.