Parallel code to check if a large number is prime