OFFSET
1,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
fQ[n_]:=PrimeQ[n^3-30]&&PrimeQ[n^3+30]; lst={}; Do[If[fQ@Prime[n], AppendTo[lst, Prime[n]]], {n, 8!}]; lst
(* Second program: *)
Select[Prime@ Range@ 1600, AllTrue[#^3 + 30 {-1, 1}, PrimeQ] &] (* Michael De Vlieger, Jan 21 2018 *)
PROG
(Magma) [p: p in PrimesUpTo(50000)|IsPrime(p^3-30) and IsPrime(p^3+30)] // Vincenzo Librandi, Jan 30 2011
(PARI) isok(p) = isprime(p) && isprime(p^3-30) && isprime(p^3+30); \\ Michel Marcus, Jan 22 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 23 2008
STATUS
approved