On the sum of inverses of primes and of twin primes