Simple implementation of the Miller-Rabin primality test in Go and Python