OFFSET
1,1
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
173 is in the sequence because 173+1 = 2*3*29 has 3 prime factors.
MATHEMATICA
Select[Prime[Range[200]], PrimeOmega[#+1]<4&] (* Harvey P. Dale, Feb 02 2012 *)
PROG
(PARI) s(n) = {sr=0; ct=0; forprime(x=2, n, if(bigomega(x+1) < 4, print1(x" "); sr+=1.0/x; ct+=1; ); ); print(); print(ct" "sr); } \\ Lists primes p<=n such that p+1 has at most 3 prime factors.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Dec 27 2002
STATUS
approved