Wrote prime.c