A178004 The n-digit prime with the largest number of 6's, the largest of these if there is more than 1. 0 if no such prime exists.
0, 67, 661, 6661, 96667, 666667, 9666661, 66666667, 666666667, 6666666661, 66666666667, 669666666661, 6666676666667, 96666666666667, 696666666666661, 6966666666666661, 96666666666666661, 666666666666666661
Offset: 1
Examples
The largest number of 6's in 5-digit primes is 3, achieved by 16661, 26669, 46663, 56663, 60661,..., 76667, 96661, 96667. a(5) is the largest of these, 96667. - _R. J. Mathar_, Nov 23 2010