OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Flatten[Table[Select[FromDigits/@Tuples[{1, 6}, n], PrimeQ], {n, 8}]] (* Vincenzo Librandi, Jul 27 2012 *)
Select[Flatten[Table[10*FromDigits/@Tuples[{1, 6}, n]+1, {n, 7}]], PrimeQ] (* Slightly faster than the above Mathematica program by forcing the last digit to be one. *) (* Harvey P. Dale, May 31 2018 *)
PROG
(Magma) [p: p in PrimesUpTo(11616611) | Set(Intseq(p)) subset [1, 6]]; // Vincenzo Librandi, Jul 27 2012. (see Berselli A020461).
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved