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

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

Original entry on oeis.org

2, 29, 229, 929, 2029, 2099, 2909, 2999, 9029, 9209, 9929, 20029, 20929, 22229, 29009, 29209, 92009, 99929, 200009, 200029, 200909, 200929, 202099, 202999, 209029, 209299, 209929, 220009, 222029, 290209, 290999, 292909, 299029, 299099, 299909, 900929
Offset: 1

Views

Author

Vincenzo Librandi, Aug 18 2015

Keywords

Comments

A020460 is a subsequence.

Crossrefs

Cf. similar sequences listed in A261267.

Programs

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

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

A386044 Primes having only {0, 2, 3, 7} as digits.

Original entry on oeis.org

2, 3, 7, 23, 37, 73, 223, 227, 233, 277, 307, 337, 373, 727, 733, 773, 2003, 2027, 2203, 2207, 2237, 2273, 2333, 2377, 2707, 2777, 3023, 3037, 3203, 3307, 3323, 3373, 3727, 3733, 7027, 7207, 7237, 7307, 7333, 7703, 7723, 7727, 20023, 20233, 20323, 20327, 20333
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A214704, A260125, A261267.

Programs

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

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

Original entry on oeis.org

2, 7, 47, 227, 277, 727, 2027, 2207, 2447, 2477, 2707, 2777, 4007, 4027, 4447, 7027, 7207, 7247, 7477, 7727, 20047, 20407, 20477, 20707, 20747, 22027, 22247, 22277, 22447, 22727, 22777, 24007, 24077, 24247, 24407, 27077, 27277, 27407, 27427, 40277, 40427, 42227
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A261267, A384449, A385784.

Programs

  • Magma
    [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 2, 4, 7]];
    
  • Maple
    f:= n-> (l-> add([0, 2, 4, 7][l[j]+1]*10^(j-1), j=1..nops(l)))(convert(n, base, 4)):
    select(isprime, [seq(f(i), i=0..600)])[];  # Alois P. Heinz, Jul 15 2025
  • Mathematica
    Select[FromDigits /@ Tuples[{0, 2, 4, 7}, n], PrimeQ]
  • PARI
    primes_with(, 1, [0, 2, 4, 7]) \\ uses function in A385776
  • Python
    print(list(islice(primes_with("0247"), 41))) # uses function/imports in A385776
    

A386049 Primes having only {0, 2, 5, 7} as digits.

Original entry on oeis.org

2, 5, 7, 227, 257, 277, 557, 577, 727, 757, 2027, 2207, 2557, 2707, 2777, 5077, 5227, 5507, 5527, 5557, 7027, 7057, 7207, 7507, 7577, 7727, 7757, 20507, 20707, 22027, 22277, 22727, 22777, 25057, 25577, 27077, 27277, 27527, 50077, 50207, 50227, 50527, 50707, 50777
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Comments

Primes with decimal digits only in the set {0,2} mod 5.

Crossrefs

Supersequence of A214705, A260827, A261267.

Programs

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

A386051 Primes having only {0, 2, 6, 7} as digits.

Original entry on oeis.org

2, 7, 67, 227, 277, 607, 677, 727, 2027, 2207, 2267, 2677, 2707, 2767, 2777, 6007, 6067, 6277, 6607, 7027, 7207, 7607, 7727, 20627, 20707, 22027, 22067, 22277, 22727, 22777, 26227, 26267, 26627, 26777, 27067, 27077, 27277, 27767, 60077, 60607, 60727, 62207, 62627
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A261267, A385770, A385787.

Programs

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

A386053 Primes having only {0, 2, 7, 8} as digits.

Original entry on oeis.org

2, 7, 227, 277, 727, 787, 827, 877, 887, 2027, 2087, 2207, 2287, 2707, 2777, 2887, 7027, 7207, 7727, 7877, 8087, 8287, 8707, 8807, 8887, 20287, 20707, 20807, 20887, 22027, 22277, 22727, 22777, 22787, 22807, 22877, 27077, 27277, 27827, 28027, 28087, 28277, 28807
Offset: 1

Views

Author

Jason Bard, Jul 15 2025

Keywords

Crossrefs

Supersequence of A261267, A385771, A385789.

Programs

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

A386067 Primes having only {0, 3, 7, 8} as digits.

Original entry on oeis.org

3, 7, 37, 73, 83, 307, 337, 373, 383, 733, 773, 787, 877, 883, 887, 3037, 3083, 3307, 3373, 3733, 3803, 3833, 3877, 7307, 7333, 7703, 7873, 7877, 7883, 8087, 8377, 8387, 8707, 8737, 8783, 8803, 8807, 8837, 8887, 30307, 30703, 30707, 30773, 30803, 33037, 33073
Offset: 1

Views

Author

Jason Bard, Jul 16 2025

Keywords

Crossrefs

Supersequence of A260378, A260381, A261267, A385771.

Programs

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