OFFSET
1,1
COMMENTS
Subsequence of primes in the sequence defined as b(n) = n^3 + 3*n - 1 = 3, 13, 35, 75, 139, 233, 363, 535, ... = A079908(n) - 1.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Table[n^3+3n-1, {n, 200}], PrimeQ] (* Harvey P. Dale, Sep 08 2024 *)
PROG
(PARI) a(n)=n^3+3*n-1;
for(i=0, 10^3, if(isprime(a(i)), print1(a(i), ", ")))
(Magma) [ a: n in [0..250] | IsPrime(a) where a is (n^3+3*n-1)]; // Vincenzo Librandi, Jan 30 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Graziano Aglietti (mg5055(AT)mclink.it), Aug 23 2010
EXTENSIONS
Offset set to 1 by R. J. Mathar, Aug 25 2010
STATUS
approved