miller-robin and fermat test for prime number