OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= k -> isprime(k^3+k^2+k-1):
select(filter, [1, seq(i, i=2..10000, 2)]); # Robert Israel, Oct 07 2019
MATHEMATICA
Do[If[PrimeQ[ -1+n+n^2+n^3], Print[n]], {n, 1, 300}]
PROG
(Magma) [n: n in [0..1000] | IsPrime(n^3+n^2+n-1)] // Vincenzo Librandi, Nov 23 2010
(PARI) is(n)=isprime(n^3+n^2+n-1) \\ Charles R Greathouse IV, Feb 17 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Dec 13 2006
EXTENSIONS
More terms from Vincenzo Librandi, Mar 26 2010
STATUS
approved