Java Playground - prime check: Online Interpreter, Compiler & Editor | Sololearn