12-Jan-2023 13:49:00 prime_test(): MATLAB/Octave version 4.2.2 Test prime(). prime_sweep(): Call PRIME for an increasing series of N values. N Pi Time Ratio 1 0 0.000161 2 1 0.000022 0.137778 4 2 0.000035 1.580645 8 4 0.000063 1.795918 16 6 0.000141 2.238636 32 11 0.000328 2.326565 64 18 0.000758 2.312000 128 31 0.001799 2.373388 256 54 0.004696 2.610603 512 97 0.010597 2.256587 1024 172 0.025954 2.449132 2048 309 0.062248 2.398405 4096 564 0.152361 2.447638 8192 1028 0.371817 2.440367 16384 1900 0.872249 2.345908 32768 3512 2.206140 2.529255 65536 6542 5.679691 2.574493 131072 12251 14.453186 2.544713 prime_sweep(): Call PRIME for an increasing series of N values. N Pi Time Ratio 10 4 0.000090 100 25 0.001288 14.293651 1000 168 0.022898 17.775495 10000 1229 0.450852 19.689612 100000 9592 9.966202 22.105267 1000000 78498 237.962941 23.876994 prime_test(): Normal end of execution. 12-Jan-2023 13:53:32