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 = 1329 = 3 * 443 ] and [ 11^2 - 2 = 119 = 7 * 17 ] are both semiprimes.
17 is prime and appears in the sequence because [ 17^3 - 2 = 4911 = 3 * 1637 ] and [ 17^2 - 2 = 287 = 7 * 41 ] are both semiprimes.
MAPLE
with(numtheory): A243222:= proc() local p; p:=ithprime(n); if bigomega(p^3-2)=2 and bigomega(p^2-2) =2 then RETURN (p); fi; end: seq( A 243222 (), n=1..1000);
MATHEMATICA
PROG
(PARI) s=[]; forprime(p=2, 3000, if(bigomega(p^2-2)==2 && bigomega(p^3-2)==2, s=concat(s, p))); s \\ Colin Barker, Jun 03 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Jun 01 2014
STATUS
approved