Time Complexity: Primality

  • + 1 comment

    Sieve approaches are to find ALL primes not just check a if a single number is prime. You're solving a more complex problem so you can't be too surprised by a worse run time