OFFSET
1,1
COMMENTS
There are only 36 terms in this sequence, which is a finite subsequence of A152313.
Two particular examples:
6481 is also the smallest prime formed from the concatenation of two consecutive squares.
81649 is the only prime containing all the nonprime positive digits such that every string of two consecutive digits is a square.
LINKS
Chris K. Caldwell and G. L. Honaker, Jr., 81649, Prime Curios!
EXAMPLE
14869 is the smallest prime that contains all the nonprime positive digits; 98641 is the largest one.
MATHEMATICA
Select[Union@ Flatten@ Map[FromDigits /@ Permutations@ # &, Rest@ Subsets@ {1, 4, 6, 8, 9}], PrimeQ] (* Michael De Vlieger, Jan 19 2019 *)
PROG
(PARI) isok(p) = isprime(p) && (d=digits(p)) && vecmin(d) && (#Set(d) == #d) && (#select(x->isprime(x), d) == 0); \\ Michel Marcus, Jan 14 2019
CROSSREFS
Subsequence of A152313. Subsequence of A029743. Subsequence of A155024 (with distinct nonprime digits but with 0) and of A034844.
KEYWORD
nonn,base,fini,full
AUTHOR
Bernard Schott, Jan 13 2019
STATUS
approved