DXC Technology Interview Question

Q: Program for prime number?