fixed prime number checker