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”).

A141489
Numbers n such that n^2 + n + 257 is prime.
2
0, 2, 3, 4, 7, 9, 10, 11, 13, 14, 17, 18, 20, 21, 23, 24, 25, 27, 28, 30, 31, 34, 37, 41, 42, 44, 48, 49, 51, 53, 56, 59, 60, 63, 65, 66, 67, 69, 70, 73, 74, 77, 79, 80, 81, 83, 88, 90, 91, 93, 94, 95, 100, 101, 104, 107, 111, 114, 115, 116, 119, 122, 125, 129, 135, 137
OFFSET
1,2
LINKS
EXAMPLE
If n=0, then n^2 + n + 257 = 257 (prime).
If n=100, then n^2 + n + 257 = 10357 (prime).
MATHEMATICA
Select[Range[0, 200], PrimeQ[#^2+#+257]&] (* Harvey P. Dale, Jun 07 2016 *)
PROG
(Magma) [n: n in [0..5000] |IsPrime(n^2+n+257)] // Vincenzo Librandi, Nov 25 2010
(PARI) isok(n) = isprime(n^2+n+257); \\ Michel Marcus, Mar 12 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Parthasarathy Nambi, Aug 09 2008
EXTENSIONS
More terms from Vincenzo Librandi, Mar 25 2010
STATUS
approved