OFFSET
1,1
COMMENTS
All terms == 2 or 4 mod 6. - Robert Israel, Jan 01 2015
EXAMPLE
2 is in the sequence because 3^2 + 2^3 = 17 is prime.
56 is in the sequence because 3^56 + 56^3 = 523347633027360537213687137 is prime.
MAPLE
select(t -> isprime(3^t+t^3), [seq(seq(6*i+j, j=[2, 4]), i=0..100)]); # Robert Israel, Jan 01 2015
MATHEMATICA
Do[If[PrimeQ[3^n+n^3], Print[n]], {n, 0, 12000}]
PROG
(PARI) is(n)=ispseudoprime(3^n+n^3) \\ Charles R Greathouse IV, Jun 06 2017
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Michel Lagneau, Jan 01 2015
EXTENSIONS
a(4)-a(7) from Hans Havermann, Apr 30 2015
a(8) from Ryan Propper, Jun 27 2023
STATUS
approved