Optimization of Miller-Rabin algorithm with Sieve of Eratosthenes accelerator