Create prime.c

unfinished, but working :)