prime_test 05-Mar-2019 21:05:52 prime_test MATLAB version Test prime. PRIME_SWEEP Call PRIME for an increasing series of N values. N Pi Time Ratio 1 0 0.004366 2 1 0.000193 0.044205 4 2 0.000389 2.015544 8 4 0.002184 5.614396 16 6 0.001899 0.869505 32 11 0.000096 0.050553 64 18 0.000070 0.729167 128 31 0.000062 0.885714 256 54 0.000354 5.709677 512 97 0.000209 0.590395 1024 172 0.000499 2.387560 2048 309 0.001320 2.645291 4096 564 0.003301 2.500758 8192 1028 0.007792 2.360497 16384 1900 0.018145 2.328670 32768 3512 0.038292 2.110333 65536 6542 0.079357 2.072417 131072 12251 0.217298 2.738234 PRIME_SWEEP Call PRIME for an increasing series of N values. N Pi Time Ratio 10 4 0.000419 100 25 0.000018 0.042959 1000 168 0.000489 27.166667 10000 1229 0.007812 15.975460 100000 9592 0.132893 17.011393 1000000 78498 3.563537 26.815084 10000000 664579 100.414847 28.178421 prime_test Normal end of execution. 05-Mar-2019 21:07:37 diary off