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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A056905 Primes of the form k^2+5. 7
5, 41, 149, 1301, 2309, 5189, 6089, 9221, 13001, 15881, 26249, 28229, 39209, 41621, 60521, 66569, 86441, 112901, 116969, 138389, 171401, 186629, 207941, 213449, 242069, 254021, 266261, 285161, 304709, 331781, 345749, 352841, 389381, 443561 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Except for a(0), a(n) mod 180 = 41 or 149 since k must be a multiple of 6 without being a multiple of 30 for k^2+5 to be prime.

LINKS

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

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

FORMULA

a(n) =36*A056906(n)+5

EXAMPLE

a(2)=149 since 12^2+5=149 which is prime

MATHEMATICA

Intersection[Table[n^2+5, {n, 0, 10^2}], Prime[Range[9*10^3]]] ...or... For[i=5, i<=5, a={}; Do[If[PrimeQ[n^2+i], AppendTo[a, n^2+i]], {n, 0, 100}]; Print["n^2+", i, ", ", a]; i++ ] - Vladimir Orlovsky (4vladimir(AT)gmail.com), Apr 29 2008

Select[Table[n^2+5, {n, 0, 7000}], PrimeQ] (* Vincenzo Librandi, Nov 30 2011 *)

PROG

(MAGMA) [a: n in [0..700] | IsPrime(a) where a is n^2+5]; // Vincenzo Librandi, Nov 30 2011

CROSSREFS

Cf. A002496, A056899, A049423, A005473.

Sequence in context: A142101 A102265 A128347 * A088547 A105412 A096946

Adjacent sequences:  A056902 A056903 A056904 * A056906 A056907 A056908

KEYWORD

nonn,easy

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Jul 07 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 02:39 EST 2012. Contains 205567 sequences.