Thanks for the input! To answer your question, I have not tried this code on QB64, though I did compile it in QUICKBasic, and as you alluded to, it does run MUCH more quickly. The thing is, as a benchmark, the difference in performance between my two systems is really quite insignificant. Let's face it; ANY system can run a compiled program adequately fast, but when that same program must be interpreted "on the fly", I feel it gives a much better indication of the relative power of a given system. And honestly, the point of this program was never to be especially efficient, but just to inspire a logical approach toward solving various mathematical problems. As always, I encourage you to experiment with "tweaking" or optimizing this code any way you see fit & see what happens; this IS, after all, how we learn! Thanks, once again for commenting, and remember to have FUN coding! (Because if it ain't fun, why bother, right?) Cheers for now & I hope to see you in the next one!
Have you tried running same thing on QB64? It could be blazing fast solving this problem on a modern processor natively.
Thanks for the input! To answer your question, I have not tried this code on QB64, though I did compile it in QUICKBasic, and as you alluded to, it does run MUCH more quickly. The thing is, as a benchmark, the difference in performance between my two systems is really quite insignificant.
Let's face it; ANY system can run a compiled program adequately fast, but when that same program must be interpreted "on the fly", I feel it gives a much better indication of the relative power of a given system.
And honestly, the point of this program was never to be especially efficient, but just to inspire a logical approach toward solving various mathematical problems.
As always, I encourage you to experiment with "tweaking" or optimizing this code any way you see fit & see what happens; this IS, after all, how we learn!
Thanks, once again for commenting, and remember to have FUN coding! (Because if it ain't fun, why bother, right?) Cheers for now & I hope to see you in the next one!