Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 372 Bytes

File metadata and controls

19 lines (15 loc) · 372 Bytes

Remove Primes

Easy


  1. You are given an ArrayList of positive integers.
  2. You have to remove prime numbers from the given ArrayList and return the updated ArrayList.
  3. Note : The order of elements should remain same.

Example 1:

Input:  n = 4,  al = [3 12 13 15]
Output:  [12, 15]

Constraints:

1 <= N <= 10000