LTM Limited interview question

Write a prime number code