have the code more readable
start to edit countPrime