Problem 51 - partial solution

Reduced to 12 seconds to calculate max for five digits
Problem 51 - partial solution

Reduced to 7 seconds to calculate max for five digits
{pattern: "56**3", matches: 6, prime: "56003"}
Problem 51

{pattern: "*2*3*3", matches: 7, prime: "121313"}
time to calculate primes 9336
time to calculate patterns 646134
Problem 51

Added target family size, to break out of loop early when we reach target
Reduces time to ~23 sec