find a triangular number with more than 500 divisors - linux pthreads example