DXC Technology Interview Question

Write a code to print prime numbers