multithreaded checkprime