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 A383371 #14 Jul 21 2025 17:47:59 %S A383371 2,11,41,181,211,241,281,421,811,821,881,1181,1481,1811,2111,2141, %T A383371 2221,2281,2411,2441,4111,4211,4241,4421,4441,4481,8111,8221,8821, %U A383371 11411,11821,12211,12241,12281,12421,12821,12841,14221,14281,14411,14821,18121,18181,18211 %N A383371 Primes having only {1, 2, 4, 8} as digits. %H A383371 Jason Bard, <a href="/A383371/b383371.txt">Table of n, a(n) for n = 1..10000</a> %H A383371 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a> %e A383371 11 is in this sequence because 1 is an integer power of 2. %e A383371 13 is not in this sequence because 3 is not an integer power of 2. %t A383371 nmax = 8; Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 4, 8}, n], PrimeQ], {n, 1, nmax}]] %o A383371 (PARI) is(n)=isprime(n) && #setminus(Set(digits(n)),[1,2,4,8])==0 \\ _Charles R Greathouse IV_, Apr 24 2025 %Y A383371 Subsequence of A173580. Intersection of A028846 and A000040. %Y A383371 Supersequence of A260267, A260270. %Y A383371 Cf. A381259, A066593. %K A383371 nonn,base,easy %O A383371 1,1 %A A383371 _Jason Bard_, Apr 24 2025