thread pool based prime numbers generator w/ benchmark