Data source: http://rosettacode.org/wiki/Miller-Rabin_primality_test