OFFSET
1,1
COMMENTS
Primes p such that (p-1)^3/8+(p+1)/2 is also prime, i.e., in A095692.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
p=3 is in the sequence because (3-1)^3/8+(3+1)/2=3 is prime.
p=5 is in the sequence because (5-1)^3/8+(5+1)/2=11 is prime.
MATHEMATICA
f[n_]:=((n-1)/2)^3+((n+1)/2); lst={}; Do[p=Prime[n]; If[PrimeQ[f[p]], AppendTo[lst, p]], {n, 6!}]; lst
Select[Prime[Range[180]], PrimeQ[(#-1)^3/8+(#+1)/2]&] (* Harvey P. Dale, Jan 05 2011 *)
PROG
(Magma) [p: p in PrimesUpTo(1000) | IsPrime((p^3-3*p^2+7*p+3) div 8)]; // Vincenzo Librandi, Apr 10 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 27 2009
EXTENSIONS
Definition rewritten by R. J. Mathar, Aug 17 2009
STATUS
approved