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.

A060568 Number of primes between n and R(n) where R(n) (A004086) is the digit reversal of n.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 3, 4, 6, 9, 11, 12, 15, 16, 7, 3, 0, 2, 4, 6, 9, 11, 13, 14, 8, 4, 2, 0, 2, 4, 7, 8, 10, 12, 10, 6, 4, 2, 0, 2, 4, 6, 8, 9, 12, 9, 6, 4, 2, 0, 2, 5, 7, 7, 14, 11, 9, 7, 4, 2, 0, 2, 4, 5, 15, 12, 11, 8, 6, 5, 2, 0, 2, 2, 18, 15, 13, 10, 8, 7, 4, 2, 0, 1, 20, 16, 14
Offset: 1

Views

Author

Amarnath Murthy, Apr 27 2001

Keywords

Examples

			a(10) = 4, as there are four primes between 10 and 1.
		

Crossrefs

Programs

  • Python
    from sympy import primerange
    def A060568(n):
        x = (n, int(str(n)[::-1],10))
        return len([i for i in primerange(min(x)+1,max(x))]) # John Tyler Rascoe, Jan 13 2025

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), May 10 2001