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.

A059798 Primes p such that |p - q| is a square, where q is the reversal of p.

Original entry on oeis.org

23, 37, 43, 59, 67, 73, 89, 1237, 1567, 1787, 1907, 2141, 2251, 2297, 2633, 2963, 3019, 4079, 4253, 4363, 4583, 6637, 6701, 6857, 6967, 7211, 7321, 7541, 8147, 8419, 8923, 8969, 9103, 9323, 9433, 29303, 29803, 40093, 40193, 40493, 40693, 40993
Offset: 1

Views

Author

Enoch Haga, Feb 23 2001

Keywords

Examples

			a(7)=1237. Reverse is 7321 so 7321-1237=6084 and 6084 is a square whose root is 78.
		

Crossrefs

Cf. A059799.

Formula

Subtract reversal of prime from prime. Take absolute value. If a square, add to sequence.