Search:

Type: Posts; User: jps

Search: Search took 0.16 seconds.

  1. Thread: Counting primes

    by jps
    Replies
    18
    Views
    1,109

    [SOLVED] Re: Counting primes

    I did not ask if he solved the problem. I asked you to read: The problem with spoonfeeding
    Only after you read it will you understand why we have this policy
  2. Thread: Counting primes

    by jps
    Replies
    18
    Views
    1,109

    [SOLVED] Re: Counting primes

    @Kewish please read The problem with spoonfeeding
  3. Thread: Counting primes

    by jps
    Replies
    18
    Views
    1,109

    [SOLVED] Re: Counting primes

    2 being the only even prime... why do ++ each iteration? That causes a check to be false every other iteration. How about += 2 instead, only hitting the odd numbers up to n/2
Results 1 to 3 of 3