No. Didn't the link I gave you explain it all?
I beg your pardon, it appears I missed the hyperlink. I have gone through it now, and everything makes sense to me now.
so test two, then three and go up in steps of two.
It is incredible how such minute tweaks can cut the running time in half. I initially did think that we never needed to iterate through the even numbers, but I reckoned checking if the no. was
even or not ,
would take about the same amount of time as
It never occurred to me that we could actually just increment the loop in steps of 2 and skip those even numbers altogether.
This has been very insightful. Learnt a lot.
Thank you for your patience.