login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A153322 Primes p such that p^3 - 12 and p^3 + 12 are also primes. 4

%I #14 Sep 08 2022 08:45:39

%S 5,271,421,449,1151,1399,1579,2579,3109,4349,7759,9631,9839,11161,

%T 11369,12391,12799,13109,13411,14281,15359,15439,16361,16661,19429,

%U 19961,20369,21391,22469,25121,25339,27581,31271,36749,43399,44059,48119

%N Primes p such that p^3 - 12 and p^3 + 12 are also primes.

%H Harvey P. Dale, <a href="/A153322/b153322.txt">Table of n, a(n) for n = 1..1000</a>

%t fQ[n_]:=PrimeQ[n^3-12]&&PrimeQ[n^3+12];lst={};Do[If[fQ@Prime[n],AppendTo[lst,Prime[n]]],{n,8!}];lst

%t Select[Prime[Range[5000]],AllTrue[#^3+{12,-12},PrimeQ]&] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, May 16 2020 *)

%o (Magma) [p: p in PrimesUpTo(50000)|IsPrime(p^3-12) and IsPrime(p^3+12)] // _Vincenzo Librandi_, Jan 30 2011

%Y Cf. A153116, A153119, A153120, A153320, A153321.

%K nonn

%O 1,1

%A _Vladimir Joseph Stephan Orlovsky_, Dec 23 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)