OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 29 because (29^2 + 29^3 - 1) = (841 + 24389 - 1) = 25229, which is prime.
MAPLE
filter:= n -> isprime(n) and isprime(n^2 + n^3 - 1):
select(filter, [2, seq(i, i=3..10000, 2)]); # Robert Israel, Jan 29 2017
MATHEMATICA
Select[Prime[Range[300]], PrimeQ[#^3+#^2-1]&] (* Harvey P. Dale, Feb 07 2017 *)
PROG
(PARI) isok(n) = isprime(n) && isprime(n^2+n^3-1) \\ Michel Marcus, Jul 29 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Chuck Seggelin (barkeep(AT)plastereddragon.com), Oct 16 2003
STATUS
approved