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.

A158716 Largest prime with n distinct nonprime digits.

This page as a plain text file.
%I A158716 #9 Aug 29 2025 10:13:06
%S A158716 89,941,9601,98641,980641
%N A158716 Largest prime with n distinct nonprime digits.
%t A158716 a[n_]:=Module[{k=NextPrime[10^n-1,-1]}, While[!SubsetQ[{0,1,4,6,8,9}, IntegerDigits[k]] || CountDistinct[IntegerDigits[k]]<n, k=NextPrime[k,-1]]; k]; Array[a,5,2] (* _Stefano Spezia_, Aug 29 2025 *)
%Y A158716 Cf. A007810.
%K A158716 fini,full,nonn,base,changed
%O A158716 2,1
%A A158716 _Lekraj Beedassy_, Mar 24 2009