OFFSET
1,1
COMMENTS
2^3 - 3 = 5 is prime, 4^3 - 3 = 61 is prime, ...
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
MATHEMATICA
a[n_]:=n^x-y; lst={}; x=3; y=3; Do[If[PrimeQ[a[n]], AppendTo[lst, n]], {n, 0, 6!}]; lst
Select[Range[2, 1000], PrimeQ[#^3 - 3] &] (* G. C. Greubel, Sep 01 2016 *)
PROG
(Magma) [n: n in [2..500] | IsPrime(n^3-3)] # Vincenzo Librandi, Nov 26 2010
(PARI) is(n)=isprime(n^3-3) \\ Charles R Greathouse IV, Feb 17 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 03 2009
EXTENSIONS
First two terms 0,1, removed by Zak Seidov, Mar 14 2009
STATUS
approved