TCS Interview Question

Write a prime number program