Change JPRIME to isPrimeNumber

self explanatory variable name
Change J -> testedNumber

add { } to loops to distinguish blocks better