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.

A144938 Squares k such that k - 2 and k + 2 are prime.

This page as a plain text file.
%I A144938 #12 Dec 11 2020 06:41:46
%S A144938 9,81,225,441,1089,13689,56169,74529,91809,95481,149769,184041,194481,
%T A144938 199809,263169,314721,328329,370881,651249,804609,1071225,1147041,
%U A144938 1238769,1306449,1520289,1535121,1718721,2442969,2595321,2614689
%N A144938 Squares k such that k - 2 and k + 2 are prime.
%H A144938 Charles R Greathouse IV, <a href="/A144938/b144938.txt">Table of n, a(n) for n = 1..10000</a>
%F A144938 A087679 intersect A000290. - _R. J. Mathar_, Dec 11 2020
%t A144938 lst={};Do[p=n^2;If[PrimeQ[p-2]&&PrimeQ[p+2],AppendTo[lst,p]],{n,1,7!,2}];lst
%o A144938 (PARI) forstep(n=3,1e3,6,if(isprime(n^2-2)&&isprime(n^2+2),print1(n^2", "))) \\ _Charles R Greathouse IV_, Oct 05 2011
%Y A144938 Cf. A000290, A087679.
%K A144938 nonn,easy
%O A144938 1,1
%A A144938 _Vladimir Joseph Stephan Orlovsky_, Sep 25 2008