jerry-maurice / prime_and_factors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 100.0%