Akash Technolabs Interview Question

Jvm, write a code about prime number.