This site is supported by donations to The OEIS Foundation.

 Annual Appeal: Please make a donation to keep the OEIS running. In 2018 we replaced the server with a faster one, added 20000 new sequences, and reached 7000 citations (often saying "discovered thanks to the OEIS"). Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A005574 Numbers k such that k^2 + 1 is prime. (Formerly M1010) 147

%I M1010

%S 1,2,4,6,10,14,16,20,24,26,36,40,54,56,66,74,84,90,94,110,116,120,124,

%T 126,130,134,146,150,156,160,170,176,180,184,204,206,210,224,230,236,

%U 240,250,256,260,264,270,280,284,300,306,314,326,340,350,384,386,396

%N Numbers k such that k^2 + 1 is prime.

%C Hardy and Littlewood conjectured that the asymptotic number of elements in this sequence not exceeding n is approximately c*sqrt(n)/log(n) for some constant c. - _Stefan Steinerberger_, Apr 06 2006

%C Also, nonnegative integers such that a(n)+i is a Gaussian prime. - _Maciej Ireneusz Wilczynski_, May 30 2011

%C Apparently Goldbach conjectured that any a>1 from this sequence can be written as a=b+c where b and c are in this sequence (Lemmermeyer link below). - _Jeppe Stig Nielsen_, Oct 14 2015

%D Dubner, Harvey. "Generalized Fermat primes." J. Recreational Math., 18 (1985): 279-280.

%D R. K. Guy, "Unsolved Problems in Number Theory", 3rd edition, A2

%D G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 5th ed., Oxford Univ. Press, 1979, p. 15, Thm. 17.

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

%H T. D. Noe, <a href="/A005574/b005574.txt">Table of n, a(n) for n = 1..10000</a>

%H H. Dubner, <a href="/A006093/a006093_1.pdf">Generalized Fermat primes</a>, J. Recreational Math. 18.4 (1985-1986), 279. (Annotated scanned copy)

%H F. Ellermann, <a href="/A002496/a002496.txt">Primes of the form (m^2)+1 up to 10^6</a>

%H L. Euler, <a href="http://eulerarchive.maa.org/pages/E283.html">De numeris primis valde magnis</a>, Novi Commentarii academiae scientiarum Petropolitanae 9 (1764), pp. 99-153. See pp. 123-125.

%H R. K. Guy, <a href="/A000081/a000081.pdf">Letter to N. J. A. Sloane, 1988-04-12</a> (annotated scanned copy)

%H F. Lemmermeyer, <a href="http://mathoverflow.net/questions/14690/">Primes of the form a^2+1</a>, Math Overflow question (2010).

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/LandausProblems.html">Landaus Problems</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Power.html">Power</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Near-SquarePrime.html">Near-Square Prime</a>

%H Marek Wolf, <a href="http://arXiv.org/abs/0803.1456">Search for primes of the form m^2+1</a>, arXiv:0803.1456 [math.NT], 2008-2010.

%F a(n) = A090693(n) - 1.

%t Select[Range[350], PrimeQ[ #^2 + 1] &] (* _Stefan Steinerberger_, Apr 06 2006 *)

%t Join[{1},2Flatten[Position[PrimeQ[Table[x^2+1,{x,2,1000,2}]],True]]] (* _Fred Patrick Doty_, Aug 18 2017 *)

%o (PARI) isA005574(n) = isprime(n^2+1) \\ _Michael B. Porter_, Mar 20 2010

%o (PARI) for(n=1, 1e3, if(isprime(n^2 + 1), print1(n, ", "))) \\ _Altug Alkan_, Oct 14 2015

%o (MAGMA) [n: n in [0..400] | IsPrime(n^2+1)]; // _Vincenzo Librandi_, Nov 18 2010

%o a005574 n = a005574_list !! (n-1)

%o a005574_list = filter ((== 1) . a010051' . (+ 1) . (^ 2)) [0..]

%o -- _Reinhard Zumkeller_, Jul 03 2015

%Y Cf. A002522, A001912, A002496, A062325, A090693, A000068, A006314, A006313, A006315, A006316, A056994, A056995.

%Y Other sequences of the type "Numbers k such that k^2 + i is prime": this sequence (i=1), A067201 (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).

%Y Cf. A010051, A259645.

%K nonn,easy,nice

%O 1,2

%A _N. J. A. Sloane_

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.

Last modified December 11 22:04 EST 2018. Contains 318052 sequences. (Running on oeis4.)