Find almost prime numbers in an array.
Unlock detailed company stats for this questionUpgrade
Given an array with n up to 1e5, for each element find whether it is almost prime, meaning it has exactly 3 divisors.
Community answers
No answers contributed by the community yet.
Related questions
Find the first missing positive number in an array.Find the closest number in a sorted array.Find the duplicate number in an array in O(n) time and O(1) space.Related courses

Course

Course
Course
