Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #14 Sep 08 2022 08:45:43
%S 2,3,7,13,17,43,53,73,97,107,163,233,307,337,347,457,557,587,617,653,
%T 673,787,797,857,877,953,977,1063,1087,1093,1117,1163,1283,1303,1423,
%U 1483,1583,1597,1663,1733,1777,1823,1933,1973,2053,2503,2593,2617,2647
%N Primes p such that |p^3 - p^2 - p - 4| is prime.
%t lst={};Do[p=Prime[n];If[PrimeQ[p^3-p^2-p-4],AppendTo[lst,p]],{n,6!}];lst
%o (Magma) [ n: n in PrimesUpTo(3000) | IsPrime(a) where a is n^3-n^2-n-4 ]; // _Vincenzo Librandi_, Dec 03 2010; corrected by _Klaus Brockhaus_, Dec 03 2010
%K nonn
%O 1,1
%A _Vladimir Joseph Stephan Orlovsky_, Apr 04 2009