login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:51 EDT 2024. Contains 371967 sequences. (Running on oeis4.)