1
C - C++ / Re: "Find 'nth' prime program" - Also, is this a good way to detect bad input? [C++]
« on: November 12, 2014, 07:41:50 am »
You're right about std::vector<unsigned int>; I have no intention of using this to generate negative primes, and if I did for some reason want negative primes I would probably just create a new vector where these already-generated primes are altered to be negative - and then if I wanted I could merge the two together into a single vector of primes (-n to n).
As for using MSVS, well I got the professional version for free (insert joke about free food tasting better), and it's required by Unreal Engine's editor, something else I'm learning to use, which I also got for free...I use it because I really like the IDE, and support for C#/VC# but because I'm fresh I realise there may be much better options out there, maybe you can point me in the right direction?
Anyways, I'm pleased with the useful discussion generated on this thread, I think in the future I'll post more Euler problem solutions and other coding problems, as I don't make the most efficient or neat code the first time through, I'm happy to see the green 'check'! But I always like to look back on my solutions afterwards to try and make them better.
As for using MSVS, well I got the professional version for free (insert joke about free food tasting better), and it's required by Unreal Engine's editor, something else I'm learning to use, which I also got for free...I use it because I really like the IDE, and support for C#/VC# but because I'm fresh I realise there may be much better options out there, maybe you can point me in the right direction?
Anyways, I'm pleased with the useful discussion generated on this thread, I think in the future I'll post more Euler problem solutions and other coding problems, as I don't make the most efficient or neat code the first time through, I'm happy to see the green 'check'! But I always like to look back on my solutions afterwards to try and make them better.