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.

Showing 1-8 of 8 results.

A260266 Primes having only {0, 1, 4} as digits.

Original entry on oeis.org

11, 41, 101, 401, 4001, 4111, 4441, 10111, 10141, 11411, 14011, 14401, 14411, 40111, 41011, 41141, 41411, 44041, 44101, 44111, 100411, 101111, 101141, 101411, 110441, 114001, 114041, 140111, 140401, 140411, 141041, 141101, 400441, 401101, 401411, 404011
Offset: 1

Views

Author

Vincenzo Librandi, Jul 22 2015

Keywords

Comments

A020449 and A020452 are subsequences.
All terms end with a digit "1". - M. F. Hasler, Jul 26 2015

Crossrefs

Primes that contain only digits among {1,4,k}: this sequence (k=0), A260267 (k=2), A199341 (k=3), A260268 (k=5), A260269 (k=6), A079651 (k=7), A260270 (k=8), A260271 (k=9).

Programs

  • Magma
    [p: p in PrimesUpTo(5*10^5) | Set(Intseq(p)) subset [1, 4, 0]];
    
  • Mathematica
    Select[Prime[Range[4 10^4]], Complement[IntegerDigits[#], {1, 4, 0}]=={} &]
  • PARI
    A260266(n=50,show=0)={for(d=1,1e9,my(t,u=vector(d,i,10^(d-i))~);forvec(v=vector(d,i,[i==1||i==d,1+(iM. F. Hasler, Jul 25 2015

A383371 Primes having only {1, 2, 4, 8} as digits.

Original entry on oeis.org

2, 11, 41, 181, 211, 241, 281, 421, 811, 821, 881, 1181, 1481, 1811, 2111, 2141, 2221, 2281, 2411, 2441, 4111, 4211, 4241, 4421, 4441, 4481, 8111, 8221, 8821, 11411, 11821, 12211, 12241, 12281, 12421, 12821, 12841, 14221, 14281, 14411, 14821, 18121, 18181, 18211
Offset: 1

Views

Author

Jason Bard, Apr 24 2025

Keywords

Examples

			11 is in this sequence because 1 is an integer power of 2.
13 is not in this sequence because 3 is not an integer power of 2.
		

Crossrefs

Subsequence of A173580. Intersection of A028846 and A000040.
Supersequence of A260267, A260270.

Programs

  • Mathematica
    nmax = 8; Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 4, 8}, n], PrimeQ], {n, 1, nmax}]]
  • PARI
    is(n)=isprime(n) && #setminus(Set(digits(n)),[1,2,4,8])==0 \\ Charles R Greathouse IV, Apr 24 2025

A386030 Primes having only {0, 1, 4, 8} as digits.

Original entry on oeis.org

11, 41, 101, 181, 401, 811, 881, 1181, 1481, 1801, 1811, 4001, 4111, 4441, 4481, 4801, 8011, 8081, 8101, 8111, 10111, 10141, 10181, 11411, 11801, 14011, 14081, 14401, 14411, 18041, 18181, 18401, 18481, 40111, 40801, 40841, 41011, 41081, 41141, 41411, 41801, 44041
Offset: 1

Views

Author

Jason Bard, Jul 14 2025

Keywords

Crossrefs

Subsequence of A030430.
Supersequence of A061247, A260266, A260270.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 4, 8]];
    
  • Mathematica
    Select[FromDigits /@ Tuples[{0, 1, 4, 8}, n], PrimeQ]
  • PARI
    primes_with(, 1, [0, 1, 4, 8]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("0148"), 41))) # uses function/imports in A385776
    

A386108 Primes having only {1, 3, 4, 8} as digits.

Original entry on oeis.org

3, 11, 13, 31, 41, 43, 83, 113, 131, 181, 311, 313, 331, 383, 431, 433, 443, 811, 881, 883, 1181, 1381, 1433, 1481, 1483, 1811, 1831, 3181, 3313, 3331, 3343, 3413, 3433, 3833, 3881, 4111, 4133, 4441, 4481, 4483, 4813, 4831, 8111, 8311, 8431, 8443, 8831, 11113
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A199341, A199348, A260270, A385778.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 4, 8]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 4, 8}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [1, 3, 4, 8]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("1348"), 41))) # uses function/imports in A385776
    

A386121 Primes having only {1, 4, 5, 8} as digits.

Original entry on oeis.org

5, 11, 41, 151, 181, 541, 811, 881, 1151, 1181, 1451, 1481, 1511, 1811, 4111, 4441, 4451, 4481, 5441, 5581, 5851, 5881, 8111, 8581, 11411, 11551, 14411, 14551, 14851, 15451, 15511, 15541, 15551, 15581, 15881, 18181, 18451, 18481, 18541, 41141, 41411, 41851, 44111
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260268, A260270, A385780.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 5, 8]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 5, 8}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [1, 4, 5, 8]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("1458"), 41))) # uses function/imports in A385776
    

A386124 Primes having only {1, 4, 6, 8} as digits.

Original entry on oeis.org

11, 41, 61, 181, 461, 641, 661, 811, 881, 1181, 1481, 1811, 1861, 4111, 4441, 4481, 4861, 6481, 6661, 6841, 8111, 8161, 8461, 8641, 8681, 8861, 11161, 11411, 11681, 14411, 14461, 16111, 16141, 16411, 16481, 16661, 16811, 18181, 18461, 18481, 18661, 41141, 41161
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260269, A260270, A385782.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 6, 8]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 6, 8}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [1, 4, 6, 8]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("1468"), 41))) # uses function/imports in A385776
    

A386126 Primes having only {1, 4, 7, 8} as digits.

Original entry on oeis.org

7, 11, 17, 41, 47, 71, 181, 487, 787, 811, 877, 881, 887, 1117, 1171, 1181, 1187, 1447, 1471, 1481, 1487, 1741, 1747, 1777, 1787, 1811, 1847, 1871, 1877, 4111, 4177, 4441, 4447, 4481, 4787, 4817, 4871, 4877, 7177, 7187, 7411, 7417, 7477, 7481, 7487, 7717, 7741
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A079651, A260270, A260892, A385795.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 7, 8]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 7, 8}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [1, 4, 7, 8]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("1478"), 41))) # uses function/imports in A385776
    

A386128 Primes having only {1, 4, 8, 9} as digits.

Original entry on oeis.org

11, 19, 41, 89, 149, 181, 191, 199, 419, 449, 491, 499, 811, 881, 911, 919, 941, 991, 1181, 1481, 1489, 1499, 1811, 1889, 1949, 1999, 4111, 4441, 4481, 4889, 4919, 4999, 8111, 8191, 8419, 8819, 8849, 8941, 8999, 9181, 9199, 9419, 9491, 9811, 9941, 9949, 11119
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260270, A260271, A385783, A385796.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 8, 9]];
    
  • Mathematica
    Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 8, 9}, n], PrimeQ], {n, 7}]]
  • PARI
    primes_with(, 1, [1, 4, 8, 9]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("1489"), 41))) # uses function/imports in A385776
    
Showing 1-8 of 8 results.