HF RL Explorer

Compute an approximation of Brun's constant (the sum of reciprocals of twin primes) using the primesieve…

Compute an approximation of Brun's constant (the sum of reciprocals of twin primes) using the primesieve…: a task in Repo2RLEnv TerminalWorld (EuniAI) (Harbor dataset). You need to build primesieve from source (its repository is at https://github.com/kimwalisch/primesieve.git) and use it to…

The task

You need to build `primesieve` from source (its repository is at https://github.com/kimwalisch/primesieve.git) and use it to generate twin prime pairs. Compute the partial sum of reciprocals of all twin primes (i.e., for each twin-prime pair (p, p+2), add 1/p + 1/(p+2)) for two limits: **10,000** and **100,000,000**…

Part of FineEnvs/repo2rlenv-terminalworld.