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-10 of 10 results.

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

Original entry on oeis.org

2, 7, 29, 79, 97, 227, 229, 277, 727, 797, 929, 977, 997, 2297, 2729, 2777, 2797, 2927, 2999, 7229, 7297, 7727, 7927, 9227, 9277, 9929, 22229, 22277, 22279, 22727, 22777, 27277, 27299, 27779, 27799, 27997, 29297, 29927, 72227, 72229, 72277, 72727, 72797
Offset: 1

Views

Author

Vincenzo Librandi, Aug 11 2015

Keywords

Comments

A020459, A020460 and A020471 are subsequences.

Crossrefs

Cf. similar sequences listed in A261181.

Programs

  • Magma
    [p: p in PrimesUpTo(2*10^5) | Set(Intseq(p)) subset [2, 7, 9]];
    
  • Mathematica
    Select[Prime[Range[2 10^4]], Complement[IntegerDigits[#], {2, 7, 9}] == {} &]
    Select[Flatten[Table[FromDigits/@Tuples[{2,7,9},n],{n,5}]],PrimeQ] (* Harvey P. Dale, Dec 17 2024 *)
  • Python
    from gmpy2 import is_prime
    from itertools import product
    A261182_list = [int(''.join(d)) for l in range(1,10) for d in product('279',repeat=l) if is_prime(int(''.join(d)))] # Chai Wah Wu, Aug 11 2015

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

Original entry on oeis.org

7, 47, 79, 97, 449, 479, 499, 797, 947, 977, 997, 4447, 4799, 4999, 7477, 7499, 7949, 9479, 9497, 9749, 9949, 44449, 44497, 44777, 44797, 47497, 47777, 47779, 47797, 47947, 47977, 49477, 49499, 49747, 49999, 74449, 74747, 74779, 74797, 77447, 77477, 77479
Offset: 1

Views

Author

Vincenzo Librandi, Aug 11 2015

Keywords

Comments

A020465, A020466 and A020471 are subsequences.

Crossrefs

Cf. similar sequences listed in A261181.

Programs

  • Magma
    [p: p in PrimesUpTo(2*10^5) | Set(Intseq(p)) subset [4, 7, 9]];
  • Mathematica
    Select[Prime[Range[6 10^4]], Complement[IntegerDigits[#], {4, 7, 9}] == {} &]

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

Original entry on oeis.org

7, 67, 79, 97, 677, 769, 797, 967, 977, 997, 6679, 6779, 6967, 6977, 6997, 7669, 7699, 9677, 9679, 9697, 9767, 9769, 9967, 66697, 66797, 66977, 67679, 67699, 67777, 67967, 67979, 69677, 69697, 69767, 69779, 69997, 76667, 76679, 76697, 76777, 77699, 77797
Offset: 1

Views

Author

Vincenzo Librandi, Aug 11 2015

Keywords

Comments

A020469 and A020471 are subsequences.

Crossrefs

Cf. similar sequences listed in A261181.

Programs

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

A384449 Primes having only {0, 4, 7} as digits.

Original entry on oeis.org

7, 47, 4007, 4447, 7477, 44777, 47407, 47777, 74047, 74077, 74707, 74747, 77047, 77447, 77477, 77747, 407047, 407707, 407747, 440047, 444007, 444047, 470077, 470447, 474077, 474707, 477047, 477077, 704447, 704477, 704747, 704777, 707407, 707747, 740477, 744077, 744407, 744707, 747407, 770047
Offset: 1

Views

Author

Jason Bard, May 29 2025

Keywords

Crossrefs

Subsequence of A030432.
Supersequence of A020465.
Cf. Primes that contain only the digits (0,k,7): A199327 (k=1), A261267 (k=2), A260378 (k=3), this sequence (k=4), A260827 (k=5), A261181 (k=9).
Cf. A000040.

Programs

  • Magma
    [p: p in PrimesUpTo(2*10^6) | Set(Intseq(p)) subset [0, 4, 7]];
    
  • Mathematica
    Select[FromDigits/@Tuples[{0, 4, 7}, 6], PrimeQ]
  • Python
    from sympy import sieve
    A384449 = [p for p in sieve.primerange(10**6) if all(n in ['0','4','7'] for n in str(p))] # Jwalin Bhatt,  Jun 02 2025
    
  • Python
    from itertools import count, islice
    from gmpy2 import digits, is_prime
    def A384449_gen(): # generator of terms
        for i in count(1):
            if is_prime(m:=int(digits(i,3).replace('1','4').replace('2','7'))):
                yield m
    A384449_list = list(islice(A384449_gen(),40)) # Chai Wah Wu, Jun 07 2025

A386075 Primes having only {0, 4, 7, 9} as digits.

Original entry on oeis.org

7, 47, 79, 97, 409, 449, 479, 499, 709, 797, 907, 947, 977, 997, 4007, 4049, 4079, 4099, 4409, 4447, 4799, 4909, 4999, 7079, 7477, 7499, 7907, 7949, 9007, 9049, 9479, 9497, 9749, 9907, 9949, 40009, 40099, 40499, 40709, 40949, 44449, 44497, 44777, 44797, 44909
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A261181, A261183, A384449, A385768.

Programs

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

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
    

A386068 Primes having only {0, 3, 7, 9} as digits.

Original entry on oeis.org

3, 7, 37, 73, 79, 97, 307, 337, 373, 379, 397, 709, 733, 739, 773, 797, 907, 937, 977, 997, 3037, 3079, 3307, 3373, 3709, 3733, 3739, 3779, 3793, 3797, 3907, 7039, 7079, 7307, 7309, 7333, 7393, 7703, 7793, 7907, 7933, 7937, 7993, 9007, 9337, 9377, 9397, 9733
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A260378, A260382, A261181.

Programs

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

A386080 Primes having only {0, 5, 7, 9} as digits.

Original entry on oeis.org

5, 7, 59, 79, 97, 509, 557, 577, 599, 709, 757, 797, 907, 977, 997, 5009, 5059, 5077, 5099, 5507, 5557, 5779, 7057, 7079, 7507, 7559, 7577, 7757, 7759, 7907, 9007, 9059, 9907, 50077, 50599, 50707, 50777, 50909, 50957, 55009, 55057, 55079, 55579, 55799, 55997
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A260827, A260831, A261181, A385769.

Programs

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

A386083 Primes having only {0, 6, 7, 9} as digits.

Original entry on oeis.org

7, 67, 79, 97, 607, 677, 709, 769, 797, 907, 967, 977, 997, 6007, 6067, 6079, 6607, 6679, 6709, 6779, 6907, 6967, 6977, 6997, 7069, 7079, 7607, 7669, 7699, 7907, 9007, 9067, 9677, 9679, 9697, 9767, 9769, 9907, 9967, 60077, 60607, 60679, 60779, 66067, 66697, 66797
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A261181, A261184, A385770.

Programs

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

A386084 Primes having only {0, 7, 8, 9} as digits.

Original entry on oeis.org

7, 79, 89, 97, 709, 787, 797, 809, 877, 887, 907, 977, 997, 7079, 7789, 7877, 7879, 7907, 8009, 8087, 8089, 8707, 8779, 8807, 8887, 8999, 9007, 9787, 9887, 9907, 70009, 70079, 70099, 70709, 70877, 70879, 70979, 70997, 70999, 77797, 77899, 77977, 77999, 78007
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A106110, A261181, A385771, A385772.

Programs

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