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!)
A172154 Numbers k such that 24*k+-5 are both prime. 1
1, 2, 6, 7, 12, 13, 16, 21, 23, 27, 29, 33, 34, 44, 49, 54, 62, 68, 71, 72, 78, 83, 89, 92, 98, 99, 103, 106, 112, 114, 119, 148, 149, 154, 163, 167, 176, 177, 181, 182, 187, 188, 197, 209, 216, 218, 222, 232, 236, 237, 244, 252, 254, 257, 259, 266, 274, 279, 288, 301 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
1 is a term because 24*1-5 = 19 (prime) and 24*1+5 = 29 (prime).
MAPLE
q:= n-> (t-> andmap(isprime, [t-5, t+5]))(24*n):
select(q, [$1..400])[]; # Alois P. Heinz, Jul 16 2022
MATHEMATICA
okQ[n_]:=Module[{n24=24 n}, PrimeQ[n24-5]&&PrimeQ[n24+5]]; Select[Range[500], okQ] (* Harvey P. Dale, Feb 16 2010 *)
CROSSREFS
Sequence in context: A189327 A371410 A217575 * A293531 A072147 A190121
KEYWORD
nonn
AUTHOR
EXTENSIONS
Sequence corrected (by deleting improper terms and adding additional terms) by Harvey P. Dale, Feb 16 2010
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 June 18 02:05 EDT 2024. Contains 373468 sequences. (Running on oeis4.)