Aloha Technology Interview Question

Write a program to check whether a number is prime or not.