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!)
A241809 Semiprimes sp such that sp+2 is a prime. 3
9, 15, 21, 35, 39, 51, 57, 65, 69, 77, 87, 95, 111, 129, 155, 161, 177, 209, 221, 237, 249, 267, 291, 305, 309, 329, 335, 365, 371, 377, 381, 395, 407, 417, 437, 447, 485, 489, 497, 501, 519, 545, 591, 597, 611, 629, 671, 681, 689, 699, 707, 717, 731, 737, 749 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A063638(n) - 2.
EXAMPLE
a(2) = 15 = 3*5, which is semiprime and 15+2 = 17 is a prime.
a(6) = 51 = 3*17, which is semiprime and 51+2 = 53 is a prime.
MAPLE
with(numtheory): A241809:= proc(); if bigomega(x)=2 and isprime(x+2)then RETURN (x); fi; end: seq(A241809 (), x=1..2000);
MATHEMATICA
A241809={}; Do[If[PrimeOmega[n]==2&&PrimeQ[n+2], AppendTo[A241809, n]], {n, 1000}]; A241809
Select[Prime[Range[200]]-2, PrimeOmega[#]==2&] (* Harvey P. Dale, Aug 06 2015 *)
SequencePosition[Table[Which[PrimeQ[n], 1, PrimeOmega[n]==2, 2, True, 0], {n, 800}], {2, _, 1}][[;; , 1]] (* Harvey P. Dale, Oct 05 2023 *)
PROG
(PARI) for(k=1, 1000, if(bigomega(k)==2 && isprime(k+2), print1(k, ", "))) \\ Colin Barker, May 07 2014
CROSSREFS
Sequence in context: A050991 A033553 A020192 * A063174 A338082 A336115
KEYWORD
nonn,easy
AUTHOR
K. D. Bajpai, Apr 29 2014
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 July 13 10:56 EDT 2024. Contains 374282 sequences. (Running on oeis4.)