Infosys Interview Question

Write a code for checking prime numbers?