fixed isprime in tester