OFFSET
1,1
COMMENTS
Primes formed by using only digits 4, 6, 8, 9. Of course, all the terms of this sequence end with 9. - Bernard Schott, Jan 31 2019
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
Chris Caldwell, The Prime Glossary, Composite number
G. L. Honaker, Jr. and Chris Caldwell, Prime Curios! 89
EXAMPLE
89 is the smallest composite-digit prime and also the only composite-digit prime whose digits are distinct. - Bernard Schott, Jan 31 2019
MATHEMATICA
Select[Prime@Range[6500], Intersection[IntegerDigits[ # ], {0, 1, 2, 3, 5, 7}] == {} & ] (* Ray Chandler, Mar 04 2007 *)
With[{c = {4, 6, 8, 9}}, Array[Select[Map[FromDigits@ Append[#, 9] &, Tuples[c, {#}]], PrimeQ] &, 4]] // Flatten (* Michael De Vlieger, Feb 02 2019 *)
CROSSREFS
KEYWORD
nonn,easy,base,less
AUTHOR
G. L. Honaker, Jr., Jan 17 2000
EXTENSIONS
Extended by Ray Chandler, Mar 04 2007
STATUS
approved