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.

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 *)

A386054 Primes having only {0, 2, 7, 9} as digits.

Original entry on oeis.org

2, 7, 29, 79, 97, 227, 229, 277, 709, 727, 797, 907, 929, 977, 997, 2027, 2029, 2099, 2207, 2297, 2707, 2729, 2777, 2797, 2909, 2927, 2999, 7027, 7079, 7207, 7229, 7297, 7727, 7907, 7927, 9007, 9029, 9209, 9227, 9277, 9907, 9929, 20029, 20297, 20707, 20929, 22027
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A261181, A261182, A261267, A261268.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 2, 7, 9]];
    
  • Mathematica
    Select[FromDigits /@ Tuples[{0, 2, 7, 9}, n], PrimeQ]
  • PARI
    primes_with(, 1, [0, 2, 7, 9]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("0279"), 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
    

A386151 Primes having only {2, 3, 7, 9} as digits.

Original entry on oeis.org

2, 3, 7, 23, 29, 37, 73, 79, 97, 223, 227, 229, 233, 239, 277, 293, 337, 373, 379, 397, 727, 733, 739, 773, 797, 929, 937, 977, 997, 2237, 2239, 2273, 2293, 2297, 2333, 2339, 2377, 2393, 2399, 2729, 2777, 2797, 2927, 2939, 2999, 3229, 3299, 3323, 3329, 3373, 3727
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A214704, A260128, A260382, A261182.

Programs

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

A386158 Primes having only {2, 4, 7, 9} as digits.

Original entry on oeis.org

2, 7, 29, 47, 79, 97, 227, 229, 277, 449, 479, 499, 727, 797, 929, 947, 977, 997, 2297, 2447, 2477, 2729, 2749, 2777, 2797, 2927, 2999, 4229, 4297, 4447, 4729, 4799, 4999, 7229, 7247, 7297, 7477, 7499, 7727, 7927, 7949, 9227, 9277, 9479, 9497, 9749, 9929, 9949
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A261182, A261183, A385784, A385785.

Programs

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

A386163 Primes having only {2, 5, 7, 9} as digits.

Original entry on oeis.org

2, 5, 7, 29, 59, 79, 97, 227, 229, 257, 277, 557, 577, 599, 727, 757, 797, 929, 977, 997, 2297, 2557, 2579, 2729, 2777, 2797, 2927, 2957, 2999, 5227, 5279, 5297, 5527, 5557, 5779, 5927, 7229, 7297, 7529, 7559, 7577, 7727, 7757, 7759, 7927, 9227, 9257, 9277, 9929
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A214705, A260831, A261182, A385786.

Programs

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

A386166 Primes having only {2, 6, 7, 9} as digits.

Original entry on oeis.org

2, 7, 29, 67, 79, 97, 227, 229, 269, 277, 677, 727, 769, 797, 929, 967, 977, 997, 2267, 2269, 2297, 2677, 2699, 2729, 2767, 2777, 2797, 2927, 2969, 2999, 6229, 6269, 6277, 6299, 6679, 6779, 6967, 6977, 6997, 7229, 7297, 7669, 7699, 7727, 7927, 9227, 9277, 9629
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A261182, A261184, A385787, A385788.

Programs

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

A386168 Primes having only {2, 7, 8, 9} as digits.

Original entry on oeis.org

2, 7, 29, 79, 89, 97, 227, 229, 277, 727, 787, 797, 827, 829, 877, 887, 929, 977, 997, 2287, 2297, 2729, 2777, 2789, 2797, 2879, 2887, 2897, 2927, 2999, 7229, 7297, 7727, 7789, 7829, 7877, 7879, 7927, 8287, 8297, 8779, 8887, 8929, 8999, 9227, 9277, 9787, 9829
Offset: 1

Views

Author

Jason Bard, Jul 18 2025

Keywords

Crossrefs

Supersequence of A106110, A261182, A385789, A385790.

Programs

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