## How to check if a number is prime in a more efficient manner?

So I have the following problem. They give me an array w/ n numbers and I have to print if it contains any prime numbers using “Divide et Impera”. I solved the problem but it gets only 70/100 because …