n = 100; tic; countprimes(n); toc n = 5000; tic; countprimes(n); toc n = 10000; tic; countprimes(n); toc n = 30000; tic; countprimes(n); toc matlabpool('open', 'local', 12); % another form of matlabpool n = 100; tic; countprimes_p(n); toc n = 5000; tic; countprimes_p(n); toc n = 10000; tic; countprimes_p(n); toc n = 30000; tic; countprimes_p(n); toc matlabpool('close');