Capgemini Interview Question

Write a code to determine whether a number is a prime number or not?