A300473 Numbers k with the property that k^2 + 21k + 1 is prime.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 48, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 64, 65, 66, 67, 68, 69, 73, 77, 78, 79, 80, 81, 82, 84, 85, 86, 87, 89, 91, 97, 100
Offset: 1
Keywords
Examples
17 is in the sequence because 17^2 + 21 * 17 + 1 = 647 is prime. 18 is not in the sequence because 18^2 + 21 * 18 + 1 = 703 = 19 * 37.
Links
- Seiichi Manyama, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Prime-Generating Polynomial
Programs
-
Maple
select(k-> isprime(k^2+21*k+1), [$1..100])
-
Mathematica
Select[Range[100], PrimeQ[#^2 + 21# + 1] &] (* Alonso del Arte, Mar 06 2018 *)
-
PARI
isok(k) = isprime(k^2+21*k+1); \\ Altug Alkan, Mar 07 2018
Comments