does not work, please help me to solve the problem

Create a JavaScript function which converts the given array of numbers to an array of booleans. Each element is true if the number is a prime number, and false otherwise.

For example:

primeValues([4, 2, 7, 10, 13]) // result: [false, true, true, false, true]
primeValues([17, 3, 21]) // result: [true, true, false]