cp's OEIS Frontend

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.

A007810 Largest prime with n distinct decimal digits.

This page as a plain text file.
%I A007810 #14 Sep 16 2019 17:11:06
%S A007810 7,97,983,9871,98731,987631,9876413,98765431,987654103
%N A007810 Largest prime with n distinct decimal digits.
%C A007810 Differs from A071361 from a(7) on. - _M. F. Hasler_, May 03 2017
%D A007810 J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 9871, p.194, Ellipses, Paris 2008.
%t A007810 Table[Module[{k=NextPrime[10^n-1,-1]},While[Max[DigitCount[k]]>1, k = NextPrime[ k,-1]];k],{n,9}] (* _Harvey P. Dale_, Sep 16 2019 *)
%o A007810 (PARI) A007810(n,p=sum(k=1,n,(9+k-n)*10^k)/10)={until(#Set(digits(p--))==n&&isprime(p),);p} \\ _M. F. Hasler_, May 03 2017
%Y A007810 Cf. A071360, A071361, A071362, A071363.
%K A007810 nonn,fini,base,full
%O A007810 1,1
%A A007810 N. B. Backhouse (sx52(AT)liverpool.ac.uk)