A105977 Near-repdigit primes with 7 as repeated digit.
277, 577, 677, 727, 757, 773, 787, 797, 877, 977, 1777, 2777, 7177, 7477, 7577, 7717, 7727, 7757, 7877, 47777, 67777, 71777, 76777, 77377, 77477, 77747, 77773, 77797, 77977, 79777, 97777, 727777, 773777, 775777, 777277, 777677, 777737, 777787
Offset: 1
Examples
a(2)=577 is a term because all digits are equal to 7 except one.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Select[Union[FromDigits/@(Flatten[Permutations/@Flatten[ Table[ PadRight[ {n},i,7],{n,9},{i,3,6}],1],1])],PrimeQ] (* Harvey P. Dale, Dec 12 2015 *)