Data source: http://rosettacode.org/wiki/AKS_test_for_primes
