prototype of multithread primes has been done