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.000005 2 1 0.000001 4 2 0.000000 8 4 0.000001 16 6 0.000001 32 11 0.000001 64 18 0.000002 128 31 0.000006 256 54 0.000018 512 97 0.000062 1024 172 0.000216 2048 309 0.000791 4096 564 0.002730 8192 1028 0.009803 16384 1900 0.036124 32768 3512 0.127648 65536 6542 0.501145 131072 12251 1.824520 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 5 3 0.000001 50 15 0.000002 500 95 0.000076 5000 669 0.003960 50000 5133 0.302679 500000 41538 23.912272 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.000068 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.000004 256 54 0.000026 512 97 0.000043 1024 172 0.000148 2048 309 0.000525 4096 564 0.001995 8192 1028 0.007336 16384 1900 0.027992 32768 3512 0.095423 65536 6542 0.353127 131072 12251 1.335504 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.000042 5000 669 0.002910 50000 5133 0.215365 500000 41538 17.626909 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.000116 2 1 0.000002 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.000041 1024 172 0.000089 2048 309 0.000319 4096 564 0.001194 8192 1028 0.004253 16384 1900 0.016331 32768 3512 0.058093 65536 6542 0.211481 131072 12251 0.809939 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.000041 5000 669 0.001689 50000 5133 0.127824 500000 41538 10.562381 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.001760 2 1 0.000002 4 2 0.000001 8 4 0.000001 16 6 0.000001 32 11 0.000002 64 18 0.000002 128 31 0.000003 256 54 0.000006 512 97 0.000020 1024 172 0.000061 2048 309 0.000232 4096 564 0.000811 8192 1028 0.002941 16384 1900 0.012555 32768 3512 0.040662 65536 6542 0.144406 131072 12251 0.522520 TEST01 Call PRIME_NUMBER to count the primes from 1 to N. N Pi Time 5 3 0.000003 50 15 0.000002 500 95 0.000033 5000 669 0.001172 50000 5133 0.086578 500000 41538 6.851523 PRIME_OPENMP Normal end of execution.