Time Complexity: Primality