use threads to find prime numbers up to a given number N