login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A177070
Numbers n such that 2^n + n^2 + 2 is prime.
0
0, 1, 3, 5, 7, 13, 17, 27, 31, 185, 211, 273, 413, 439, 665, 879, 6873, 20979
OFFSET
0,3
MATHEMATICA
k = 1; lst = {0}; While[k < 30000, If[PrimeQ[2^k + k^2 + 2], AppendTo[lst, k]]; k += 2]; lst (* Robert G. Wilson v, Jun 08 2010 *)
Join[{0}, Select[Range[1, 21000, 2], PrimeQ[2^#+#^2+2]&]] (* Harvey P. Dale, Dec 18 2011 *)
PROG
(Magma) [n: n in [0..2200]|IsPrime(2^n+n^2+2)]
(PARI) is(n)=ispseudoprime(2^n+n^2+2) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A171566 A137270 A071111 * A247018 A038929 A242755
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, May 31 2010
EXTENSIONS
a(17) & a(18) from Robert G. Wilson v, Jun 08 2010
STATUS
approved