bool allPrime(int A[], int n) { if(n == 0) { return true; } else if(!isPrime(A[n-1])) { return false; } else { return allPrime(A, n-1); } }