Search:

Type: Posts; User: helloworld922

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    7,023

    Re: sieve of eratosthenes

    False, all multiples are non-prime :D All the multiples in the sieve of eratosthenes must be marked off

    You only use the sqrt trick when you're checking if a number is prime by running through the...
  2. Replies
    5
    Views
    7,023

    Re: sieve of eratosthenes

    A better way is too look for the next number that's not zero, and start marking off it's multiples. Also, remember in a sieve you can't go to just the sqrt(bound), you have to go through the entire...
Results 1 to 2 of 2