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.

A244369 Palindromic right-angled primes.

Original entry on oeis.org

101, 787, 34543, 7654567, 345676543, 34567876543
Offset: 1

Views

Author

Omar E. Pol, Jun 26 2014

Keywords

Comments

Intersection of A002113 and A167842.
Intersection of A002385 and A135602.
The last term of this sequence is also the last term of A134811.

Examples

			Illustration of a(6) = 34567876543, the last term of this sequence:
. . . . . . . . . . .
. . . . . 8 . . . . .
. . . . 7 . 7 . . . .
. . . 6 . . . 6 . . .
. . 5 . . . . . 5 . .
. 4 . . . . . . . 4 .
3 . . . . . . . . . 3
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
		

Crossrefs

Programs

  • Python
    from sympy import isprime
    A244369 = []
    for n in range(1,10):
        for m in range(n-1,-1,-1):
            l = ''.join([str(d) for d in range(n,m-1,-1)])
            p = int(l+l[-2::-1])
            if isprime(p):
                A244369.append(p)
        for m in range(n+1,10):
            l = ''.join([str(d) for d in range(n,m+1)])
            p = int(l+l[-2::-1])
            if isprime(p):
                A244369.append(p)
    A244369 = sorted(A244369) # Chai Wah Wu, Aug 15 2014