OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..15000
EXAMPLE
127 is in the sequence because it is prime and composed of digits 1, 2 and 7 only.
1427 is in the sequence because it is prime and composed of digits 1, 2, 4 and 7 only.
a(129) = 12457 is the smallest prime using all the digits 1, 2, 4, 5 and 7 only once.
MATHEMATICA
Select[Prime[Range[500]], Intersection[IntegerDigits[#], {0, 3, 6, 8, 9}] == {} &]
PROG
(Python)
for n in range(1, 10**3):
..s = str(prime(n))
..if not (s.count('0') + s.count('3') + s.count('6') + s.count('8') + s.count('9')):
....print(int(s), end=', ') # Derek Orr, Sep 18 2014
(Magma) [NthPrime(n): n in [1..400] | Set(Intseq(NthPrime(n))) subset [1, 2, 4, 5, 7] ]; // Vincenzo Librandi, Sep 19 2014
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
K. D. Bajpai, Sep 10 2014
STATUS
approved