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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A028876 Numbers n such that n^2 - 5 is prime. 3
4, 6, 8, 12, 14, 16, 22, 24, 32, 34, 36, 38, 42, 44, 46, 52, 58, 64, 72, 74, 78, 82, 94, 102, 112, 116, 122, 132, 144, 152, 164, 166, 168, 174, 176, 182, 184, 186, 188, 198, 204, 212, 222, 226, 232, 234, 236, 252, 262, 264, 278, 284, 288, 292, 298, 302, 318, 324 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

G. C. Greubel, Table of n, a(n) for n = 1..1000

P. De Geest, Palindromic Quasipronics of the form n(n+x)

Eric Weisstein's World of Mathematics, Near-Square Prime

MATHEMATICA

Select[Range[400], PrimeQ[#^2 - 5] &] (* Alonso del Arte, Aug 27 2013 *)

PROG

(MAGMA) [n: n in [2..1000] |IsPrime(n^2 - 5 )] // Vincenzo Librandi, Nov 18 2010

(PARI) is(n)=isprime(n^2-5) \\ Charles R Greathouse IV, Jun 06 2017

CROSSREFS

Cf. A028875, A028877.

Sequence in context: A225508 A235036 A107303 * A271346 A053579 A074121

Adjacent sequences:  A028873 A028874 A028875 * A028877 A028878 A028879

KEYWORD

nonn,easy,changed

AUTHOR

Patrick De Geest

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified January 22 22:38 EST 2018. Contains 298093 sequences.