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
5, 271, 421, 449, 1151, 1399, 1579, 2579, 3109, 4349, 7759, 9631, 9839, 11161, 11369, 12391, 12799, 13109, 13411, 14281, 15359, 15439, 16361, 16661, 19429, 19961, 20369, 21391, 22469, 25121, 25339, 27581, 31271, 36749, 43399, 44059, 48119 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
fQ[n_]:=PrimeQ[n^3-12]&&PrimeQ[n^3+12]; lst={}; Do[If[fQ@Prime[n], AppendTo[lst, Prime[n]]], {n, 8!}]; lst
Select[Prime[Range[5000]], AllTrue[#^3+{12, -12}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 16 2020 *)
PROG
(Magma) [p: p in PrimesUpTo(50000)|IsPrime(p^3-12) and IsPrime(p^3+12)] // Vincenzo Librandi, Jan 30 2011
CROSSREFS
Sequence in context: A140001 A329610 A283518 * A326321 A234324 A066210
KEYWORD
nonn
AUTHOR
STATUS
approved

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 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)