Finish writing and testing prime numbers