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.

Previous Showing 11-14 of 14 results.

A129670 Right truncatable primes in base 4 (written in decimal form).

Original entry on oeis.org

2, 3, 11, 13, 47, 53, 191
Offset: 1

Views

Author

Martin Renner, Jun 01 2007

Keywords

Comments

There are exactly 7 right truncatable primes in base 4.

Crossrefs

A129672 Right truncatable primes in base 6 (written in decimal form).

Original entry on oeis.org

2, 3, 5, 13, 17, 19, 23, 31, 79, 83, 103, 107, 139, 191, 479, 499, 503, 619, 643, 647, 839, 1151, 2879, 2999, 3019, 3023, 3719, 3863, 5039, 6907, 6911, 18119, 18143, 41443, 41467, 108863
Offset: 1

Views

Author

Martin Renner, Jun 01 2007

Keywords

Comments

There are exactly 36 right truncatable primes in base 6.

Crossrefs

A129673 Right truncatable primes in base 7 (written in decimal form).

Original entry on oeis.org

2, 3, 5, 17, 19, 23, 37, 41, 137, 139, 163, 167, 263, 293, 977, 1171, 1847, 2053, 6841
Offset: 1

Views

Author

Martin Renner, Jun 01 2007

Keywords

Comments

There are exactly 19 right truncatable primes in base 7.

Examples

			263 is a term because 524_7 = 263_10, 52_7 = 37_10, and 5_7 = 5_10 and 263, 37 and 5 are all prime numbers. - _Bernard Schott_, Jan 25 2019
		

Crossrefs

A133757 Total number of restricted right truncatable primes in base n.

Original entry on oeis.org

0, 1, 2, 4, 11, 7, 20, 23, 27, 28, 61, 61, 153, 130, 151, 157, 301, 343, 561, 806, 1046, 615, 1227, 2136, 2472, 2288, 3685, 2110, 5241, 4798, 7017, 10630, 14175, 14127, 21267, 15034, 24677, 29289, 46814, 29291, 63872, 58451, 82839, 143678, 196033, 99103, 218108
Offset: 2

Views

Author

Martin Renner, Jan 04 2008

Keywords

Comments

Prime digits p in base n are counted if there is no prime with 2 digits which can have its rightmost digit removed to produce p.

Crossrefs

Cf. A076586.

Programs

  • Python
    from sympy import isprime, primerange
    def fromdigits(digs, base):
        return sum(d*base**i for i, d in enumerate(digs))
    def a(n):
        prime_lists, an = [(p, ) for p in primerange(1, n)], 0
        digits = 1
        while len(prime_lists) > 0:
            new_prime_strs = set()
            for p in prime_lists:
                can_extend = False
                for d in range(n):
                    c = (d, ) + p
                    if isprime(fromdigits(c, n)):
                        can_extend = True
                        new_prime_strs.add(c)
                if not can_extend:
                    an += 1
            prime_lists = list(new_prime_strs)
            digits += 1
        return an
    print([a(n) for n in range(2, 27)]) # Michael S. Branicky, Dec 11 2022

Extensions

a(6) corrected and a(11) and beyond from Michael S. Branicky, Dec 11 2022
Previous Showing 11-14 of 14 results.