OFFSET
1,1
COMMENTS
Primes of the form k^2 + k + 1 with k odd and positive. - Peter Munn, Jan 27 2018
LINKS
Muniru A Asiru, Table of n, a(n) for n = 1..5000
EXAMPLE
3 is a term because for k=2, 4*k^2 - 10*k + 7 = 3 a prime.
7 is not a term because 7 can only be obtained with k=0 or k=5/2.
MAPLE
select(isprime, [seq(4*n^2-10*n+7 , n=2..300)]); # Muniru A Asiru, Apr 15 2018
MATHEMATICA
Select[Table[4 n^2 - 10 n + 7, {n, 1, 200}], PrimeQ] (* Vincenzo Librandi, Dec 23 2019 *)
PROG
(PARI) select(isprime, vector(300, k, 4*k^2 - 10*k + 7)) \\ Joerg Arndt, Feb 28 2018
(GAP) Filtered(List([2..300], n->4*n^2-10*n+7), IsPrime); # Muniru A Asiru, Apr 15 2018
(Magma) [a: n in [1..400] | IsPrime(a) where a is 4*n^2 - 10*n + 7]; // Vincenzo Librandi, Dec 23 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Aug 25 2002
EXTENSIONS
Edited by Dean Hickerson, Aug 28 2002
a(1)=7 inserted and typo in Mathematica code corrected by Vincenzo Librandi, Dec 09 2011
Incorrect term 7 removed by Joerg Arndt, Feb 28 2018
STATUS
approved