login
A027754
Numbers k such that k^2 + k + 5 is prime.
4
0, 1, 2, 3, 6, 7, 11, 16, 17, 18, 21, 23, 27, 31, 32, 38, 42, 48, 51, 62, 67, 72, 73, 76, 77, 83, 86, 91, 93, 97, 108, 111, 116, 121, 126, 133, 136, 137, 146, 153, 158, 163, 172, 177, 182, 188, 191, 192, 193, 202, 212, 213, 216, 223, 226, 231, 247, 248
OFFSET
1,3
LINKS
Patrick De Geest, World!Of Numbers
EXAMPLE
Since 3^2 + 3 + 5 = 17, which is prime, 3 is in the sequence.
Since 4^2 + 4 + 5 = 25 = 5^2, 4 is not in the sequence.
MATHEMATICA
Select[Range[0, 499], PrimeQ[#^2 + # + 5] &] (* Alonso del Arte, Nov 28 2016 *)
PROG
(Magma) [n: n in [0..1000] |IsPrime(n^2+n+5)] // Vincenzo Librandi, Nov 20 2010
CROSSREFS
Sequence in context: A256976 A179019 A096578 * A092857 A062404 A032875
KEYWORD
nonn
STATUS
approved