prime.c - Tests whether a number is prime.