Update 10001stPrime.c

Solved problem 7