Create a function that takes an array of numbers and returns the sum of all prime numbers in the array.
sumPrimes([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) ➞ 17 sumPrimes([2, 3, 4, 11, 20, 50, 71]) ➞ 87 sumPrimes([]) ➞ 0