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!)
A153320 Primes p such that p^2 - 48 and p^2 + 48 are also primes. 4
5, 17, 19, 59, 61, 191, 227, 521, 641, 683, 709, 857, 863, 919, 983, 1031, 1039, 1097, 1117, 1123, 1151, 1229, 1423, 1543, 1579, 1621, 1699, 1733, 1759, 1867, 1871, 2153, 2237, 2287, 2357, 2383, 2557, 2621, 2879, 2971, 3301, 3329, 3371, 3581, 3847, 4021 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
fQ[n_]:=PrimeQ[n^2-48]&&PrimeQ[n^2+48]; lst={}; Do[If[fQ@Prime[n], AppendTo[lst, Prime[n]]], {n, 7!}]; lst
Select[Prime[Range[PrimePi[4500]]], AllTrue[#^2+{48, -48}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Dec 08 2015 *)
PROG
(Magma) [p: p in PrimesUpTo(5000)|IsPrime(p^2-48) and IsPrime(p^2+48)] // Vincenzo Librandi, Jan 30 2011
CROSSREFS
Sequence in context: A038964 A019401 A217079 * A171253 A226623 A171255
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 17 22:02 EDT 2024. Contains 371767 sequences. (Running on oeis4.)