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.

A062352 Palindromic primes with strictly decreasing digits up to the middle and then strictly increasing.

Original entry on oeis.org

2, 3, 5, 7, 11, 101, 313, 727, 757, 919, 929, 31013, 73037, 73237, 74047, 76367, 91019, 93139, 93239, 94049, 94349, 96269, 96469, 97379, 97579, 98389, 98689, 7310137, 7521257, 7540457, 7630367, 7632367, 7654567, 9320239, 9610169
Offset: 1

Views

Author

Amarnath Murthy, Jun 23 2001

Keywords

Comments

The last term of this finite series is 97654321012345679.
There are 84 terms. - Michael S. Branicky, Aug 04 2022

Examples

			31013 belongs to the sequence as it is a palindromic prime in which the digits are decreasing up to the middle digit 0 and then increasing.
		

Crossrefs

Cf. A062351.

Programs

  • Python
    from sympy import isprime
    from itertools import combinations
    def bgen():
        for digits in range(1, 20):
            for left in combinations("9876543210", (digits+1)//2):
                left = "".join(left)
                yield int(left + (left[:digits//2])[::-1])
    afull = sorted(filter(isprime, bgen()))
    print(afull) # Michael S. Branicky, Aug 04 2022

Extensions

Corrected and edited by Patrick De Geest, Jun 07 2003