fixed prime number test and code