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!)
A112774 Semiprimes of the form 6n+4. 12
4, 10, 22, 34, 46, 58, 82, 94, 106, 118, 142, 166, 178, 202, 214, 226, 262, 274, 298, 334, 346, 358, 382, 394, 454, 466, 478, 502, 514, 526, 538, 562, 586, 622, 634, 694, 706, 718, 766, 778, 802, 838, 862, 886, 898, 922, 934, 958, 982, 1006, 1018, 1042, 1114 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
LINKS
FORMULA
a(n) = 2 * A003627(n) = 6 * A024893(n) + 4.
MATHEMATICA
Select[6 Range[0, 200] + 4, PrimeOmega[#] == 2&] (* Vincenzo Librandi, Sep 22 2012 *)
PROG
(Magma) IsSemiprime:=func<n | &+[d[2]: d in Factorization(n)] eq 2>; [s: n in [0..200] | IsSemiprime(s) where s is 6*n + 4]; // Vincenzo Librandi, Sep 22 2012
(Python)
from sympy import factorint
def semiprime(n): f = factorint(n); return sum(f[p] for p in f) == 2
print(list(filter(semiprime, range(4, 1115, 6)))) # Michael S. Branicky, Apr 10 2021
CROSSREFS
Sequence in context: A217514 A235142 A250398 * A352296 A369385 A227225
KEYWORD
easy,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 May 18 15:55 EDT 2024. Contains 372664 sequences. (Running on oeis4.)