Bosch interview question

Write code to find out prime no.