We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Advanced
- Prime Checker
- Discussions
Prime Checker
Prime Checker
Sort by
recency
|
323 Discussions
|
Please Login in order to post a comment
The problem itself has wrong Sample Output as per Sample Input. The correct program for this Question is this: (Solved in Java 8)
this isn't working with java8/15 don't put so much mind on it. try with 7.
Sample Input
2
1
3
4
5
Sample Output
2 2 2 3 2 3 5
Complete solution in this website for this question. Prime Checker - Duplicate Words-hacker-rank-solution
(https://digitwood.com/prime-checker-hacker-rank-solution-digit-wood/)