Clean up the functions to calculate odd Primes

-Delete do;
-Since variable N is not declared in this function, so we need to initialize N's type and value, which is int N =2;
-Return the value of J;