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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A067201 Numbers k such that k^2 + 2 is prime. 43
0, 1, 3, 9, 15, 21, 33, 39, 45, 57, 81, 99, 105, 111, 117, 123, 147, 171, 219, 225, 237, 243, 249, 255, 273, 297, 303, 309, 321, 345, 351, 363, 369, 375, 387, 417, 423, 429, 441, 447, 453, 477, 501, 513, 549, 555, 561, 573, 603, 609, 651, 675, 681, 699, 711, 753 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

All terms > 1 are divisible by 3. - Robert Israel, Sep 05 2014

LINKS

T. D. Noe, Table of n, a(n) for n=1..1000

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

MAPLE

select(t -> isprime(t^2+2), [0, 1, seq(3*i, i=1..1000)]); # Robert Israel, Sep 05 2014

MATHEMATICA

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

Join[{0, 1}, Select[Range[3, 1000, 6], PrimeQ[#^2 + 2] &]] (* Zak Seidov, Jan 30 2014 *)

PROG

(PARI) select(n -> isprime(n^2+2), [1..500]) \\ Edward Jiang, Sep 05 2014

CROSSREFS

Equals 6*A056900(n-2) + 3, n>1.

Cf. A106571, A040976.

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

Sequence in context: A272793 A273567 A162486 * A071526 A276967 A114271

Adjacent sequences:  A067198 A067199 A067200 * A067202 A067203 A067204

KEYWORD

nonn

AUTHOR

Benoit Cloitre, Feb 19 2002

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 17 18:28 EST 2018. Contains 297829 sequences.