Oracle interview question

Write a program for a prime number