OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
EXAMPLE
11 is prime and appears in the sequence because 11^3 + 2 = 1333 = 31 * 43, which is a semiprime.
17 is prime and appears in the sequence because 17^3 + 2 = 4915 = 5 * 983, which is a semiprime.
37 is prime but does not appear in the sequence because 37^3 + 2 = 50655 = 3 * 5 * 11 * 983, which is not a semiprime.
MAPLE
with(numtheory): KD:= proc() local a, b, k; k:=ithprime(n); a:=bigomega(k^3+2); if a=2 then RETURN (k); fi; end: seq(KD(), n=1..500);
MATHEMATICA
PROG
(PARI) s=[]; forprime(p=2, 1200, if(bigomega(p^3+2)==2, s=concat(s, p))); s \\ Colin Barker, Apr 27 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Apr 26 2014
STATUS
approved