agentchat.contrib.captainagent.tools.math.sum_of_primes_below
sum_of_primes_below
def sum_of_primes_below(threshold)
Calculates the sum of all prime numbers below a given threshold.
Arguments:
threshold
int - The maximum number (exclusive) up to which primes are summed.
Returns:
int
- The sum of all prime numbers below the threshold.