Aye, that was kind of what I was thinking. Going to 50k is useless tho since a number can never be divided by more than half its value (if we want an answer bigger than, or equal to 2).
Got this...
Type: Posts; User: Charlie
Aye, that was kind of what I was thinking. Going to 50k is useless tho since a number can never be divided by more than half its value (if we want an answer bigger than, or equal to 2).
Got this...
Why are we checking 223 multiples btw? If were only trying to avoid the small numbers like 2 etc, why dont we just set them all to true and falsify em if they dont pass a check, starting with 2...
for (int a = 2; a <= 223; a++)
{
if (primes[a])
{
for (int b = a; b <= 223; b++)
{
int c = (a *...