Prime and Factors Challenge

General Info

  1. Write a function called "primes" that takes an array of numbers and finds all prime numbers from that array and returns them in a sorted arry. Avoid using math libraries to determine whether the number is prime
  2. Write a second function called "factors" that takes an array of numbers and returns an array of prime factors for each number