With what level of confidence? sub-100%? If you're OK with probabilistic primes, I think you can likely increase your efficiency considerably:
Fastest prime test (can be probabilistic)