Hi everyone, so I tried to implement the code from here Prime Number Program in Java - Javatpoint to flow service.

Here is the result that I get when I input “1” which is true

But when I input number than 1, this is the result

Does anyone can help me to fix the problem?

How do I solve this?