cleaned up code that spawns new prime_check process