complete pandigital prime with "divide by 3" optimization