prime.c and Makefile modification
threads joing fix