Tech Mahindra Interview Question

Write a code to find whether the given number is prime or not