login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A144938 Squares k such that k - 2 and k + 2 are prime. 7
9, 81, 225, 441, 1089, 13689, 56169, 74529, 91809, 95481, 149769, 184041, 194481, 199809, 263169, 314721, 328329, 370881, 651249, 804609, 1071225, 1147041, 1238769, 1306449, 1520289, 1535121, 1718721, 2442969, 2595321, 2614689 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Charles R Greathouse IV, Table of n, a(n) for n = 1..10000

MATHEMATICA

lst={}; Do[p=n^2; If[PrimeQ[p-2]&&PrimeQ[p+2], AppendTo[lst, p]], {n, 1, 7!, 2}]; lst

PROG

(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

CROSSREFS

Sequence in context: A207565 A207758 A016946 * A208114 A208119 A207369

Adjacent sequences:  A144935 A144936 A144937 * A144939 A144940 A144941

KEYWORD

nonn,easy

AUTHOR

Vladimir Joseph Stephan Orlovsky, Sep 25 2008

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 18 20:16 EDT 2019. Contains 321293 sequences. (Running on oeis4.)