Primality Tests • Primes Asks If a Number N Is a Prime Primality Tests • primes asks if a number N is a prime. √ • The classic algorithm tests if k | N for k =2, 3,..., N .N / • ButitrunsinΩ(2(log2 ) 2)steps.