OFFSET
1,1
COMMENTS
Sum of reciprocals ~ 1.266
EXAMPLE
157 is in the sequence because 157 + 1 = 2*79 has 2 prime factors.
MATHEMATICA
Select[Prime[Range[500]], PrimeOmega[#+1]<3&] (* Harvey P. Dale, May 17 2018 *)
PROG
(PARI) s(n) = {sr=0; forprime(x=2, n, if(bigomega(x+1) < 3, print1(x" "); sr+=1.0/x; ); ); print(); print(sr); } \\ Lists primes p<=n such that p+1 has at most 2 prime factors.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Dec 27 2002
STATUS
approved