Oracle Interview Question

Write a program for a prime number