Interview Query

Prime Numbers Identification

Start Timer

0:00:00

Upvote
5
Downvote
Save question
Mark as completed
View comments (15)
Next question

Find and return all the prime numbers in an array of integers. If there are no prime numbers, return an empty array.

Example:

Input:

[1, 2, 3] 

Output:

[2,3]
.
.
.
.
.


Comments

Loading comments