This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A140532 #29 Apr 21 2021 04:27:05 %S A140532 4,20,83,395,1610,5045,12850,23082,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %T A140532 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %U A140532 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 %N A140532 Number of primes with n distinct decimal digits, none of which are 0. %C A140532 a(9) is zero because 1+2+...+9 = 45 which is divisible by 3, making any number with 9 distinct digits also divisible by 3. - _Wei Zhou_, Oct 02 2011 %C A140532 The maximal distinct-digit prime without 0's is 98765431. Thus, a(n) = 0 for n >= 9. - _Michael S. Branicky_, Apr 20 2021 %e A140532 a(1) = #{2,3,5,7} = 4. %e A140532 a(2) = #{13,17,19,23,...,97} = 20. Note that the prime 11 is omitted because its decimal digits are not distinct. %t A140532 Length /@ Table[Select[FromDigits /@ Permutations[Range@9, {i}], PrimeQ], {i,9}] (* _Wei Zhou_, Oct 02 2011 *) %o A140532 (Python) %o A140532 from itertools import permutations %o A140532 from sympy import isprime, primerange %o A140532 def distinct_digs(n): s = str(n); return len(s) == len(set(s)) %o A140532 def a(n): %o A140532 if n >= 9: return 0 %o A140532 return sum(isprime(int("".join(p))) for p in permutations("123456789", n)) %o A140532 print([a(n) for n in range(1, 30)]) # _Michael S. Branicky_, Apr 20 2021 %Y A140532 Cf. A112371, A073532. %K A140532 nonn,base %O A140532 1,1 %A A140532 Norman Morton (mathtutorer(AT)yahoo.com), Jul 03 2008 %E A140532 Corrected by _Charles R Greathouse IV_, Aug 02 2010