Bosch Interview Question

Write code to find out prime no.