I use Primesieve by Kim Walisch to compute fastly twin numbers.

In this example I clean the output with sed and process it with awk to compute Brun’s Constant.

I try with twins until 10000 and then until 100000000 (10^8) Then I use the extrapolation explained in 3.2.2 here: Introduction to twin primes and Brun’s constant computation to obtain 1.902167937961.. (approx) just in 5 seconds.