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

 

Logo

Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 5000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A007591 Numbers n such that n^2 + 4 is prime.
(Formerly M2416)
27
1, 3, 5, 7, 13, 15, 17, 27, 33, 35, 37, 45, 47, 57, 65, 67, 73, 85, 87, 95, 97, 103, 115, 117, 125, 135, 137, 147, 155, 163, 167, 177, 183, 193, 203, 207, 215, 217, 233, 235, 243, 245, 253, 255, 265, 267, 275, 277, 287, 293, 303, 307, 313, 317, 347, 357, 373, 375 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

REFERENCES

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

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

MATHEMATICA

lst={}; Do[If[PrimeQ[n^2+4], Print[n]; AppendTo[lst, n]], {n, 10^5}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 21 2008 *)

Select[Range[0, 400], PrimeQ[#^2 + 4] &] (* Vincenzo Librandi, Sep 25 2012 *)

PROG

(MAGMA) [n: n in [0..400] | IsPrime(n^2+4)]; // _Vincenzo Librandi, Nov 18 2010

(PARI) select(n->isprime(n^2+4), vector(500, n, 2*n-1)) \\ Charles R Greathouse IV, Sep 25 2012

CROSSREFS

Other sequences of the type "Numbers n such that n^2 + k is prime": A005574 (k=1), A067201 (k=2), A049422 (k=3), A078402 (k=5), A114269 (k=6), A114270 (k=7), A114271 (k=8), A114272 (k=9), A114273 (k=10), A114274 (k=11), A114275 (k=12).

Sequence in context: A092793 A024909 A063241 * A097687 A032911 A157834

Adjacent sequences:  A007588 A007589 A007590 * A007592 A007593 A007594

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane, R. K. Guy

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 December 11 08:51 EST 2016. Contains 279052 sequences.