C Find Next Prime Number