OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
MATHEMATICA
lst={}; Do[p=Prime[n]; If[PrimeQ[p+n^3], AppendTo[lst, n]], {n, 10^3}]; lst (* Vladimir Joseph Stephan Orlovsky, Sep 08 2008 *)
PROG
(PARI) j=[]; for(n=1, 3000, if(isprime(prime(n)+n^3), j=concat(j, n))); j
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander R. Povolotsky, Aug 11 2008
EXTENSIONS
Offset set to 1 by Michel Marcus, Feb 04 2015
STATUS
approved