EVERSANA interview question

Code for prime number