Create prime.c

also final version