Euler 51: Prime with repeated digits - Brute force