OFFSET
1,1
COMMENTS
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
EXAMPLE
From K. D. Bajpai, Sep 07 2014: (Start)
29 is prime and is composed only of the curved digits 2 and 9.
359 is prime and is composed only of the curved digits 3, 5 and 9.
(End)
20235869 is the smallest instance using all curved digits. - Michel Marcus, Sep 07 2014
MAPLE
N:= 4: # to get all entries with at most N digits
S:= {0, 2, 3, 5, 6, 8, 9}:
T:= S:
for j from 2 to N do
T:= map(t -> seq(10*t+s, s=S), T);
od:
select(isprime, T);
# In Maple 11 and earlier, uncomment the next line:
# sort(convert(%, list)); # Robert Israel, Sep 07 2014
MATHEMATICA
Select[Range[2222], PrimeQ[#] && Union[Join[IntegerDigits[#], {0, 2, 3, 5, 6, 8, 9}]] == {0, 2, 3, 5, 6, 8, 9} &] (* RGWv *)
Select[Prime[Range[500]], Intersection[IntegerDigits[#], {1, 4, 7}] == {} &] (* K. D. Bajpai, Sep 07 2014 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Jan 24 2003
STATUS
approved