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
|
331 Discussions
|
Please Login in order to post a comment
How can an input of 1 can generate an output with a 2? This is a very poor-formulated question.
This is one of the worst-stated problems I've seen here. If you're looking for a hint here, just please change language level to Java 7 - without this, the necessary context is missing.
An incredibly stupid solution to the compile error is so toxic that whoever came up with this should be banished from this planet.
I wouldnt want to work with someone who relied on dirty code like
import static java.lang.System.in;
and expected other devs just to figure out what was going on in their code
A beautiful way to solve the problem with streams