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.

A072367 Squares x such that x + reverse of x is a prime.

Original entry on oeis.org

1, 100, 196, 625, 10816, 13456, 15376, 18496, 21025, 22201, 22801, 24649, 25921, 27889, 29929, 33856, 35344, 36100, 42025, 50176, 60025, 63001, 70756, 71824, 73984, 78400, 82369, 83521, 96100, 1012036, 1048576, 1073296, 1123600, 1144900
Offset: 1

Views

Author

Shyam Sunder Gupta, Jul 18 2002

Keywords

Examples

			196 is a term because 196 is a square and 196+691=887 is a prime.
		

Crossrefs

Programs

  • Magma
    [k:k in [m^2:m in [1..1100]]| IsPrime(Seqint(Intseq(k,10))+Seqint(Reverse(Intseq(k,10))))]; // Marius A. Burtea, Jun 20 2019
  • Maple
    select(t -> isprime(t+revdigs(t)), [seq(i^2,i=1..10000)]); # Robert Israel, Jun 19 2019
  • Mathematica
    Select[Range[1100]^2,PrimeQ[#+FromDigits[Reverse[IntegerDigits[#]]]]&]  (* Harvey P. Dale, Feb 20 2011 *)
  • PARI
    isok(x) = issquare(x) && isprime(x+fromdigits(Vecrev(digits(x)))); \\ Michel Marcus, Jun 19 2019