Distributed implementation of Miller-Rabin test for prime numbers