EVERSANA Interview Question

Code for prime number