The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A153120 Primes p such that p^2 +- 42 are also primes. 6
5, 11, 13, 23, 53, 89, 101, 103, 109, 181, 197, 307, 313, 457, 467, 571, 691, 769, 863, 907, 1061, 1087, 1223, 1453, 1487, 1607, 1913, 2129, 2161, 2311, 2729, 2741, 2767, 2917, 3313, 3343, 3359, 3433, 4363, 4373, 4547, 4703, 4783, 4787, 4877, 5119, 5237 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
fQ[n_]:=PrimeQ[n^2-42]&&PrimeQ[n^2+42]; lst={}; Do[If[fQ@Prime[n], AppendTo[lst, Prime[n]]], {n, 7!}]; lst
Select[Prime[Range[6000]], PrimeQ[#^2 - 42]&&PrimeQ[#^2 + 42]&] (* Vincenzo Librandi, Apr 08 2013 *)
PROG
(Magma) [p: p in PrimesUpTo(6000) | IsPrime(p^2-42) and IsPrime(p^2+42)]; // Vincenzo Librandi, Apr 08 2013
CROSSREFS
Sequence in context: A079732 A309158 A161540 * A115782 A051654 A225754
KEYWORD
nonn,easy
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 May 21 12:09 EDT 2024. Contains 372736 sequences. (Running on oeis4.)