saving the changes
it turns out the max repeating digits should be 3 for generating 8 or more primes. else
we can only have at max 7 primes with 1 or 2 repeating digits.
not very accurate code.