login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A253906
Numbers n such that n^2 + 3 and n^3 + 3 are semiprime.
3
1, 6, 20, 34, 40, 44, 46, 56, 102, 116, 120, 170, 174, 196, 200, 204, 220, 226, 232, 234, 252, 260, 262, 294, 296, 320, 334, 336, 344, 346, 358, 360, 382, 386, 392, 412, 426, 464, 476, 482, 490, 494, 514, 520, 526, 536, 556, 564, 582, 586, 592, 646, 658, 716
OFFSET
1,2
COMMENTS
All terms in this sequence, except a(1), are even.
LINKS
EXAMPLE
a(2) = 6;
6^2 + 3 = 39 = 3 * 13;
6^3 + 3 = 219 = 3 * 73;
Both are semiprime.
MATHEMATICA
Select[Range[10^3], k = 3; PrimeOmega[(#^2 + k)] == 2 && PrimeOmega[(#^3 + k)] == 2 &]
PROG
(PARI)
issemiprime(q) = q>0 && bigomega(q)==2
select(n->issemiprime(n^2+3)&&issemiprime(n^3+3), vector(2000, n, n)) \\ Colin Barker, Jan 28 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Jan 24 2015
STATUS
approved