Search:

Type: Posts; User: Charlie

Search: Search took 0.12 seconds.

  1. Replies
    12
    Views
    2,588

    Re: I dont get it....please help

    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...
  2. Replies
    12
    Views
    2,588

    Re: I dont get it....please help

    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...
  3. Replies
    12
    Views
    2,588

    Re: I dont get it....please help

    for (int a = 2; a <= 223; a++)
    {
    if (primes[a])
    {
    for (int b = a; b <= 223; b++)
    {
    int c = (a *...
Results 1 to 3 of 3