TCS interview question

Write a prime number program