OFFSET
1,2
COMMENTS
All terms in this sequence, except a(1), are even.
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
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