A056899 Primes of the form k^2 + 2.
2, 3, 11, 83, 227, 443, 1091, 1523, 2027, 3251, 6563, 9803, 11027, 12323, 13691, 15131, 21611, 29243, 47963, 50627, 56171, 59051, 62003, 65027, 74531, 88211, 91811, 95483, 103043, 119027, 123203, 131771, 136163, 140627, 149771, 173891
Offset: 1
Keywords
References
- M. Cerasoli, F. Eugeni and M. Protasi, Elementi di Matematica Discreta, Bologna 1988.
- Emanuele Munarini and Norma Zagaglia Salvi, Matematica Discreta, UTET, CittaStudiEdizioni, Milano 1997.
Links
- T. D. Noe, Table of n, a(n) for n = 1..1000
- Eric Weisstein's World of Mathematics, Near-Square Prime
Programs
-
Magma
[n: n in PrimesUpTo(175000) | IsSquare(n-2)]; // Bruno Berselli, Apr 05 2011
-
Magma
[ a: n in [0..450] | IsPrime(a) where a is n^2 +2 ]; // Vincenzo Librandi, Apr 06 2011
-
Maple
select(isprime, [seq(t^2+2, t = 0..1000)]); # Robert Israel, Sep 03 2015
-
Mathematica
Select[ Range[0, 500]^2 + 2, PrimeQ] (* Robert G. Wilson v, Sep 03 2015 *)
-
PARI
print1("2, 3");forstep(n=3,1e4,6,if(isprime(t=n^2+2),print1(", "t))) \\ Charles R Greathouse IV, Jul 19 2011
Formula
a(n) = A067201(n)^2 + 2. - M. F. Hasler, Apr 05 2009
Comments