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.

A260889 Primes having only {1, 2, 7} as digits.

Original entry on oeis.org

2, 7, 11, 17, 71, 127, 211, 227, 271, 277, 727, 1117, 1171, 1217, 1277, 1721, 1777, 2111, 2221, 2711, 2777, 7121, 7127, 7177, 7211, 7717, 7727, 11117, 11171, 11177, 11717, 11777, 12211, 12227, 12277, 12721, 17117, 21121, 21211, 21221, 21227, 21277, 21727
Offset: 1

Views

Author

Vincenzo Librandi, Aug 04 2015

Keywords

Comments

A020450, A020455 and A020459 are subsequences.

Crossrefs

Cf. Primes that contain only the digits (k,1,7): A199327 (k=0), this sequence (k=2), A260379 (k=3), A079651 (k=4), A260828 (k=5), A260891 (k=6), A260892 (k=8), A260893 (k=9).

Programs

  • Magma
    [p: p in PrimesUpTo(3*10^4) | Set(Intseq(p)) subset [1, 2, 7]];
  • Mathematica
    Select[Prime[Range[2 10^5]], Complement[IntegerDigits[#], {1, 2, 7}] == {} &]
    Table[Select[FromDigits/@Tuples[{1,2,7},n],PrimeQ],{n,5}]//Flatten (* Harvey P. Dale, Apr 12 2018 *)

A261181 Primes that contain only the digits (0, 7, 9).

Original entry on oeis.org

7, 79, 97, 709, 797, 907, 977, 997, 7079, 7907, 9007, 9907, 70009, 70079, 70099, 70709, 70979, 70997, 70999, 77797, 77977, 77999, 79777, 79907, 79979, 79997, 79999, 90007, 90709, 90907, 90977, 90997, 97007, 97777, 99079, 99707, 99709, 99907, 700079
Offset: 1

Views

Author

Vincenzo Librandi, Aug 11 2015

Keywords

Comments

A020471 is a subsequence.

Crossrefs

Cf. Primes that contain only the digits (k,7,9): this sequence (k=0), A260893 (k=1), A261182 (k=2), A260382 (k=3), A261183 (k=4), A260831 (k=5), A261184 (k=6), A106110 (k=8).

Programs

  • Magma
    [p: p in PrimesUpTo(2*10^5) | Set(Intseq(p)) subset [0, 7, 9]];
  • Mathematica
    Select[Prime[Range[6 10^4]], Complement[IntegerDigits[#], {0, 7, 9}] == {} &]
    Select[FromDigits/@Tuples[{0,7,9},6],PrimeQ] (* Harvey P. Dale, Aug 09 2024 *)

A386039 Primes having only {0, 1, 7, 9} as digits.

Original entry on oeis.org

7, 11, 17, 19, 71, 79, 97, 101, 107, 109, 179, 191, 197, 199, 701, 709, 719, 797, 907, 911, 919, 971, 977, 991, 997, 1009, 1019, 1091, 1097, 1109, 1117, 1171, 1709, 1777, 1901, 1907, 1979, 1997, 1999, 7001, 7019, 7079, 7109, 7177, 7717, 7901, 7907, 7919, 9001
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A199327, A199329, A260893.

Programs

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

A386103 Primes having only {1, 2, 7, 9} as digits.

Original entry on oeis.org

2, 7, 11, 17, 19, 29, 71, 79, 97, 127, 179, 191, 197, 199, 211, 227, 229, 271, 277, 719, 727, 797, 911, 919, 929, 971, 977, 991, 997, 1117, 1129, 1171, 1217, 1229, 1277, 1279, 1291, 1297, 1721, 1777, 1979, 1997, 1999, 2111, 2129, 2179, 2221, 2297, 2711, 2719
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260889, A260893, A261182, A385776.

Programs

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

A386127 Primes having only {1, 4, 7, 9} as digits.

Original entry on oeis.org

7, 11, 17, 19, 41, 47, 71, 79, 97, 149, 179, 191, 197, 199, 419, 449, 479, 491, 499, 719, 797, 911, 919, 941, 947, 971, 977, 991, 997, 1117, 1171, 1447, 1471, 1499, 1741, 1747, 1777, 1949, 1979, 1997, 1999, 4111, 4177, 4441, 4447, 4799, 4919, 4999, 7177, 7411
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A079651, A260271, A260893, A261183.

Programs

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

A386133 Primes having only {1, 5, 7, 9} as digits.

Original entry on oeis.org

5, 7, 11, 17, 19, 59, 71, 79, 97, 151, 157, 179, 191, 197, 199, 557, 571, 577, 599, 719, 751, 757, 797, 911, 919, 971, 977, 991, 997, 1117, 1151, 1171, 1511, 1559, 1571, 1579, 1597, 1759, 1777, 1951, 1979, 1997, 1999, 5119, 5171, 5179, 5197, 5519, 5557, 5591
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260828, A260831, A260893, A385781.

Programs

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

A386136 Primes having only {1, 6, 7, 9} as digits.

Original entry on oeis.org

7, 11, 17, 19, 61, 67, 71, 79, 97, 167, 179, 191, 197, 199, 617, 619, 661, 677, 691, 719, 761, 769, 797, 911, 919, 967, 971, 977, 991, 997, 1117, 1171, 1619, 1667, 1669, 1697, 1699, 1777, 1979, 1997, 1999, 6197, 6199, 6619, 6661, 6679, 6691, 6719, 6761, 6779
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A260891, A260893, A261184, A363023.

Programs

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

A386138 Primes having only {1, 7, 8, 9} as digits.

Original entry on oeis.org

7, 11, 17, 19, 71, 79, 89, 97, 179, 181, 191, 197, 199, 719, 787, 797, 811, 877, 881, 887, 911, 919, 971, 977, 991, 997, 1117, 1171, 1181, 1187, 1777, 1787, 1789, 1811, 1871, 1877, 1879, 1889, 1979, 1987, 1997, 1999, 7177, 7187, 7717, 7789, 7817, 7877, 7879, 7919
Offset: 1

Views

Author

Jason Bard, Jul 17 2025

Keywords

Crossrefs

Supersequence of A106110, A260892, A260893, A385783.

Programs

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