Finding Primes on a computer - C/C++