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