LTM Limited Interview Question

Write a prime number code